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 |
main() { extern i; printf("%d\n",i); { int i=20; printf("%d\n",i); } }
char *someFun() { char *temp = “string constant"; return temp; } int main() { puts(someFun()); }
main() { int c=- -2; printf("c=%d",c); }
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
Write a program to receive an integer and find it's octal equivalent. How can i do with using while loop.
why java is platform independent?
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); }
What is wrong with the following code? int *foo() { int *s = malloc(sizeof(int)100); assert(s != NULL); return s; }
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
how to check whether a linked list is circular.
What are the files which are automatically opened when a C file is executed?