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 |
How to swap two values using a single variable ? condition: Not to use Array and Pointer ?
What are the different categories of functions in c?
What is string constants?
Write a program to print “hello world” without using semicolon?
What is the difference between pure virtual function and virtual function?
What are preprocessor directives in c?
how to make c program without a libary? e.g.#include<stdio.h> libary is not in c progaram.
Define recursion in c.
difference between function & structure
Was 2000 a leap year?
I need to take a sentence from input and sort the words alphabetically using the C programming language. Note: This is C not C++. qsort and strtok not allowed
What is the benefit of using an enum rather than a #define constant?