Difference between Class and Struct.
Answer Posted / ajay prajapat
1. Structure is value type where is class is refrance
type.So class data is store in heap where as stuct data are
store in stack.
2. default type of function in struct is public where as
private in class
Is This Answer Correct ? | 55 Yes | 15 No |
Post New Answer View All Answers
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
How will you divide two numbers in a MACRO?
Do you know null pointer?
When should you use a type cast?
Explain what is the difference between functions getch() and getche()?
What are the types of data files?
How do I use void main?
Define C in your own Language.
What is include directive in c?
Explain what standard functions are available to manipulate strings?
What is the difference between typedef struct and struct?
How can I invoke another program or command and trap its output?
What does 3 periods mean in texting?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
What is the difference between #include and #include 'file' ?