What's the difference between a struct and a class? ,Java, C ,C++, ASP, ASP.net C# ,Struts ,Questions & Answer, Struts2, Ajax, Hibernate, Swing ,JSP , Servlet, J2EE ,Core Java ,Stping, VC++, HTML, DHTML, JAVASCRIPT, VB ,CSS, interview ,questions, and answers, for,experienced, and fresher
What's the difference between a struct and a class?

Many diff are there in strut and a class .class members is a private by default but in case of struts members are by default public. ans the class is a C++ element and struct is a C one. We can have functions, virtual functions, inheritance, different access modifiers private, protected, public in a class but probably not in a struct. A struct generally holds member variables only."

More interview questions and answers

What is the type of conversion operator?

What is difference b/w huge & far & near pointer?

What are the access privileges in C++? What is the default access level?

What does extern "C" int func(int *, Foo) accomplish?

What happens when we make call "delete this;" ??

What is the difference between system call and library function?

What are C++ storage classes?

Whar is the Auto storage class in C ?

What is the Auto Storage Class?

What are the Register Storage class?

What are the Static Storage class?

What are the Extern Storage class?

What is difference between template and macro??

What is constructor or ctor?

How to convert an char array to decimal array?

How can a base pointer access the members of a derived class?

How to fill a rectangle using window scrolling in C?

What are 2 ways of exporting a function from a DLL?

Explain about storage of union elements.

What do you mean by binding of data and functions?

How to differentiate while and do while statement?

What is a scope resolution operator?

What are the conditions that have to be met for a condition to be an invariant of the class?

What is the difference between an ARRAY and a LIST?

What is a node class?

Define a constructor - What it is and how it might be called (2 methods).

How can you tell what shell you are running on UNIX system?

How to convert a string into integer?

Can you think of a situation where your program would crash without reaching the breakpoint which you set at the beginning of main()?

How to print our name without using semicolon in c?

How to print value of integers into words?

Why are arrays usually processed with for loop?

What will be the output of x++ + ++x?

What is friend function?

what are header files?Can i run program without using header file?

What is abstraction?

What is macro?

What�s the auto keyword good for?

What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator.

How multiplication take place upto 200 digits?

How to differentiate i++* and *++i?

What is the difference between getch() and getchar()?

Write a program crashed before reaching main? If happen, how?

What is a mutable member?

What are the problems with a tree-style hierarchy?

Write a program for 1 232 34543 4567654?

Why is iostream better than stdio?

What does exit() do?

When would you use private inheritance?

What is the difference between memcpy and strcpy?

What's the difference between a struct and a class?

How can we handle exceptions in C?

How to compare two strings without using the strcmp() function?

How to access or modify the constt variable in C ?

What is an volatile variable?

How the processor registers can be used in C?

IF **p and &(*p) are same, than tell how?

Can you write function similar to printf()?

How to use functions fseek(), freed(), fwrite() and ftell()?

What's an initializer list?

What do you understand about datatype?

What are the data type modifiers?

what are the constants?Explain in brief?

What is an explicit constructor?

What is the difference between a baller and a reference?

How to differentiate b/n definition and declaration?

How to define their types of variables and initialize them?

What are the advantages of inheritance?

What is the Standard Template Library (STL)?

What is type casting?Explain it with an example?

What are the Array?How to define and declare them?

What are the Array Indexing?explain.

hat is a nested class?

What do you understand about String?Explain it.

What are the defining traits of an object-oriented language?

What are the reserved Keywords?Explain it.

What are the ANSI reserved names in C?

How do you access the static member of a class

What are the pointers?How to declare them?

What is the difference between class and structure?

What are the Indirection?Explain with an example?

Tell us the Name the operators that cannot be overloaded??

What are the Function Pointer?Explain with an example?

What are the Bit Operators?

What are the External Variables?

How to define structure in C?

How do u understand about structures of arrays?

How do you define offsetof() Macro?

What the use of malloc() function?

What is the difference between static link library and dynamic link library?

what is pulse code modulation?

What are the different types of malloc() function in C?

Why PCM is used?

What is the use of calloc() function?

What are smart pointer?

What is the difference between static link library and dynamic link library?

What is multithreading

What are the different type of calloc() function?

What is placement new?

define destructor as static?

R4R provides free online tutolrails ,examples for Freshers and experts .We cover core java, tutorials, spring, Hibernate, python, struts, struts 2,c language, spring boot,PHP,MYSQL,C#,ASP.NET,WPF,WCF,Photoshop , JSP, programming, example, Interview questions and answer