Answer Posted / alekhya
1.in structure we have only data members where as
in class we have members and member functions
2.in class we declare members with access specifiers like
private,public...
in structs we dont have any access specifiers all the
members of structure are pubic
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is c is a procedural language?
Find MAXIMUM of three distinct integers using a single C statement
Is sizeof a keyword in c?
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
define string ?
Explain what is the benefit of using #define to declare a constant?
using for loop sum 2 number of any 4 digit number in c language
How can my program discover the complete pathname to the executable from which it was invoked?
What are pragmas and what are they good for?
why programs in c are running with out #include
Where are some collections of useful code fragments and examples?
Why do we use static in c?
Differentiate call by value and call by reference?
What does %c do in c?
differentiate built-in functions and user – defined functions.