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
Is there any possibility to create customized header file with c programming language?
When should we use pointers in a c program?
Can you define which header file to include at compile time?
Explain what are its uses in c programming?
How we can insert comments in a c program?
What is static memory allocation?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
What are directives in c?
What is typedef struct in c?
Explain the bubble sort algorithm.
Explain what are the __date__ and __time__ preprocessor commands?
What is the equivalent code of the following statement in WHILE LOOP format?
What does the function toupper() do?