Why do we use classes in programming?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

Is it possible to provide default values while overloading a binary operator?

0 Answers  


write a c++ program that gives output 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 using looping statement

2 Answers  


this is to swap to strings....but in output the whole strings are swapped leaving first as it is...why it is so #include<iostream.h> int main() { char a[]="ajeet"; char b[]="singh"; long x=*a; long y=*b; cout<<x<<":"<<y; x=x+y; y=x-y; x=x-y; *a=x; *b=y; cout<<x<<":"<<y; cout<<&a<<endl; cout<<&b<<endl; }

1 Answers  


What are the advantages of using typedef in a program?

0 Answers  


what is the size of this class class size { public: char data1; double d; int data2; char data3; double data4; short data5; }; please explain the padding for these double variables.

9 Answers  






What is setfill c++?

0 Answers  


which operator is used for performing an exponential operation a) > b) ^ c) none

0 Answers  


Define basic type of variable used for a different condition in C++?

0 Answers  


Can you declare an array without a size in c++?

0 Answers  


What is the use of :: operator in c++?

0 Answers  


What do you mean by ‘void’ return type?

0 Answers  


Types of storage and scope of each type

2 Answers   CA,


Categories