What is the Difference between Class and Struct?
Answer Posted / santhosh.r
Structs allocates continues memory
where as class does not
structs and functions are the basic idea behind class
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are the features of the c language?
How can I discover how many arguments a function was actually called with?
Under what circumstances does a name clash occur?
What is a example of a variable?
How to throw some light on the b tree?
What is the process to create increment and decrement stamen in c?
What are the Advantages of using macro
Do you know the use of 'auto' keyword?
#include
Explain what is the benefit of using an enum rather than a #define constant?
write a c program for swapping two strings using pointer
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
what do the 'c' and 'v' in argc and argv stand for?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
Describe the header file and its usage in c programming?