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 |
write a program for egyptian fractions in c?
write a function to swap an array a[5] elements like a[0] as a[5],a[1] as a[4],....a[5] as a[0].without using more than one loop and use one array not to use temp array?
Explain how can I convert a number to a string?
What is strcmp in c?
What is the difference b/w main() in C language and main() in C++.
program to convert a integer to string in c language'
What is #define used for in c?
What is a newline escape sequence?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
difference between ordinary variable and pointer in C?
What is Function Pointer? Explain with example?
What are the benefits of c language?