Predict the output or error(s) for the following:
25. main()
{
printf("%p",main);
}
Answer Posted / surenda pal singh chouhan
Some address will be printed.
Explanation:
Function names are just addresses (just like
array names are addresses).
main() is also a function. So the address of function main
will be printed. %p in printf specifies that the argument
is an address. They are printed as hexadecimal numbers.
26. main()
Is This Answer Correct ? | 28 Yes | 2 No |
Post New Answer View All Answers
using only #include
When can a far pointer be used?
how do you execute a c program in unix.
List the difference between a 'copy constructor' and a 'assignment operator' in C?
What is difference between union All statement and Union?
I have a varargs function which accepts a float parameter?
What is the modulus operator?
What is hashing in c?
How to establish connection with oracle database software from c language?
What is character set?
What are the different types of errors?
Is fortran still used today?
I heard that you have to include stdio.h before calling printf. Why?
What are categories used for in c?
What are operators in c?