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 is = symbol different from == symbol in c programming?
what is different between auto and local static? why should we use local static?
What is the right type to use for boolean values in c? Is there a standard type?
totally how much header files r in c language
Write the control statements in C language
What does typedef struct mean?
How many levels of pointers have?
What is Dynamic Initialization.
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
What is a struct c#?
Is it possible to have a function as a parameter in another function?
write a program to read a number and print in words that is in sentence for example 21,219 then output is "twenty one thousand and two hundred nineteen" by using only control flow statements (only loops and switch case )?