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
What are the advantages of c preprocessor?
Are the outer parentheses in return statements really optional?
what will be maximum number of comparisons when number of elements are given?
What is the purpose of the preprocessor directive error?
Tell us two differences between new () and malloc ()?
Is there a way to switch on strings?
What are the salient features of c languages?
What are the types of assignment statements?
When can you use a pointer with a function?
What are two dimensional arrays alternatively called as?
What does stand for?
Can a local variable be volatile in c?
What is structure in c explain with example?
What is modeling?
Why do we use pointer to pointer in c?