can we declare a function in side the structure?
Answer Posted / savita
It can be possible in C++, but not in C.
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
Is it fine to write void main () or main () in c?
Define the scope of static variables.
where are auto variables stored? What are the characteristics of an auto variable?
What are the 5 data types?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
What is equivalent to ++i+++j?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Is void a keyword in c?
There seem to be a few missing operators ..
What does struct node * mean?
Why isn't any of this standardized in c? Any real program has to do some of these things.
What is modifier & how many types of modifiers available in c?
What is the explanation for cyclic nature of data types in c?
How do you write a program which produces its own source code as output?
What are the uses of a pointer?