main()

{

41printf("%p",main);

}8



main() { 41printf("%p",main); }8..

Answer / susie

Answer :

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.

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More C Code Interview Questions

main() { extern i; printf("%d\n",i); { int i=20; printf("%d\n",i); } }

1 Answers  


char *someFun() { char *temp = “string constant"; return temp; } int main() { puts(someFun()); }

1 Answers  


main() { int c=- -2; printf("c=%d",c); }

1 Answers   TCS,


write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30

0 Answers  


Write a program to receive an integer and find it's octal equivalent. How can i do with using while loop.

2 Answers  






why java is platform independent?

13 Answers   Wipro,


Code for 1>"ascii to string" 2>"string to ascii"

1 Answers   Aricent, Global Logic,


what is the output of following program ? void main() { int i=5; printf("%d %d %d %d %d ",i++,i--,++i,--i,i); }

10 Answers  


What is wrong with the following code? int *foo() { int *s = malloc(sizeof(int)100); assert(s != NULL); return s; }

1 Answers  


struct Foo { char *pName; }; main() { struct Foo *obj = malloc(sizeof(struct Foo)); clrscr(); strcpy(obj->pName,"Your Name"); printf("%s", obj->pName); } a. Your Name b. compile error c. Name d. Runtime error

3 Answers   HCL,


how to check whether a linked list is circular.

11 Answers   Microsoft,


What are the files which are automatically opened when a C file is executed?

1 Answers  


Categories