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 |
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
Ow can I insert or delete a line (or record) in the middle of a file?
what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,z; z=x-- -y; printf("\n%d %d %d",x,y,z); }
Which of the following data structures is on average the fastest for retrieving data: 1) Binary Tree 2) Hash Table 3) Stack
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
What is a node in c?
How can I call a function, given its name as a string?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
what is the self-referential structure?
What is console in c language?
How pointer is benefit for design a data structure algorithm?
who is the editor of 'pokemon'?