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
List the difference between a "copy constructor" and a "assignment operator"?
What is the Purpose of 'extern' keyword in a function declaration?
What is "Duff's Device"?
What is c token?
Are local variables initialized to zero by default in c?
What is advantage of pointer in c?
What is a lvalue
What is a structure member in c?
Explain what is output redirection?
Why n++ execute faster than n+1 ?
How are variables declared in c?
What is the description for syntax errors?
What is gets() function?
Explain null pointer.
What is the use of pragma in embedded c?