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
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
What is the best way of making my program efficient?
What is the purpose of main() function?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
What is structure of c program?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
Explain what does it mean when a pointer is used in an if statement?
What is maximum size of array in c?
Why c is called a middle level language?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
How can I sort a linked list?
What is this infamous null pointer, anyway?
Explain how do you convert strings to numbers in c?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
explain what is an endless loop?