What is the difference between Class and Structure?
Answer Posted / suresh ghosh
1.class by default used private access specifier but structure used public.
2.class is reference type but structure is value type.
3.class used stack algorithm but structure used heap algorithm.
4.structure don't used public access specifier.
5.class used inheritance but structure don't.
| Is This Answer Correct ? | 14 Yes | 7 No |
Post New Answer View All Answers
A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Can you please explain the difference between static and dynamic binding of functions?
How can I disable the "echo" feature?
What is null pointer and void pointer?
What is dynamic and static typing?
write a program that reads in a file and counts the number of lines, words, and characters. Your program should ask the user to input a filename. Open the file and report an error if the file does not exist or cannot be opened for some other reason. Then read in the contents of the file and count the number of lines, words, and characters in the file. Also print additional information about the file, such as the longest and shortest words, and longest and shortest lines. For simplicity, we define a word to be one or more characters ending with white space (a space, tab, carriage return, etc.). Functions for checking the types of characters can be found in the ctype.h header file, so you want to include this header file in your program. For example, the sentence below could be all that is in a file. This sentence IT 104 is taught in C++. has 32 characters, one line, and six words. The shortest line is 32 characters. The longest line is 32 characters. The shortest word is 2 characters. The longest word is 6 characters
What is the importance of mutable keyword?
What is a c++ map?
What is class in c++ with example?
When should overload new operator on a global basis or a class basis?
What do you mean by overhead in c++?
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
Differentiate between an array and a list?
What is the full name of logo?
How to tokenize a string in c++?