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 is the use of static variable in c?
What is sizeof in c?
Can the curly brackets { } be used to enclose a single line of code?
What are the advantages and disadvantages of c language?
Why do we need volatile in c?
What is default value of global variable in c?
What does the file stdio.h contain?
Why is not a pointer null after calling free?
What is the 'named constructor idiom'?
Why header file is used in c?
How can a process change an environment variable in its caller?
Subtract Two Number Without Using Subtraction Operator
What is unsigned int in c?
Simplify the program segment if X = B then C ← true else C ← false
What is multidimensional arrays