Predict the output or error(s) for the following:
25. main()
{
printf("%p",main);
}
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / khushboo
i tried it out.. on my system it gives the answer 0291. does
anybodyy esle gets the same answer?
Is This Answer Correct ? | 12 Yes | 2 No |
how 2 compile & execute c program with out using editor?
What are the advantages of external class?
How can I recover the file name given an open stream or file descriptor?
What is the output of the following program #include<stdio.h> main() { int i=0; fork(); printf("%d",i++); fork(); printf("%d",i++); fork(); wait(); }
Why the use of alloca() is discouraged?
Explain data types & how many data types supported by c?
what is purpose of fflush(stdin) function
Given a piece of code int x[10]; int *ab; ab=x; To access the 6th element of the array which of the following is incorrect? (A) *(x+5) (B) x[5] (C) ab[5] (D) *(*ab+5} .
Write a program to print this triangle: * ** * **** * ****** * ******** * ********** Don't use printf statements;use two nested loops instead. you will have to use braces around the body of the outer loop if it contains multiple statements.
What is nested structure with example?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
Explain heap and queue.