Predict the output or error(s) for the following:
25. main()
{
printf("%p",main);
}
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / khushboo
i tried it out.. on my system it gives the answer 0291. does
anybodyy esle gets the same answer?
Is This Answer Correct ? | 12 Yes | 2 No |
What is local and global variable in c?
what is answer for perfect number????????????????
How is pointer initialized in c?
why we are using semicolon at the end of printh statment
What is use of null pointer in c?
C,c++, Java is all are structural oriented or procedure oriented language..?
Write a program to reverse a given number in c language?
what is the difference between char * const and const char *?
Write a C program to perform some of the operation which can be performed using Single linked list
Define the scope of static variables.
Is c language still used?
What happens if header file is included twice?