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 |
What is the hidden bug with the following statement? assert(val++ != 0);
How to read a directory in a C program?
main() { int a[10]; printf("%d",*a+1-*a+3); }
All the combinations of prime numbers whose sum gives 32
How will you print % character? a. printf(“\%”) b. printf(“\\%”) c. printf(“%%”) d. printf(“\%%”)
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal.
6 Answers Fusion Systems GmbH,
why is printf("%d %d %d",i++,--i,i--);
#define FALSE -1 #define TRUE 1 #define NULL 0 main() { if(NULL) puts("NULL"); else if(FALSE) puts("TRUE"); else puts("FALSE"); }
main() { char *p="hai friends",*p1; p1=p; while(*p!='\0') ++*p++; printf("%s %s",p,p1); }
int main() { int x=10; printf("x=%d, count of earlier print=%d", x,printf("x=%d, y=%d",x,--x)); getch(); } ================================================== returns error>> ld returned 1 exit status =================================================== Does it have something to do with printf() inside another printf().
Find the largest number in a binary tree
To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']