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


Please Help Members By Posting Answers For Below Questions

Is there any possibility to create customized header file with c programming language?

613


When should we use pointers in a c program?

618


Can you define which header file to include at compile time?

573


Explain what are its uses in c programming?

583


How we can insert comments in a c program?

619






What is static memory allocation?

597


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1244


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'); }

688


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

1452


What are directives in c?

536


What is typedef struct in c?

573


Explain the bubble sort algorithm.

632


Explain what are the __date__ and __time__ preprocessor commands?

582


What is the equivalent code of the following statement in WHILE LOOP format?

754


What does the function toupper() do?

643