what would be the output of the following program?
main()
{
int k = 123;
char *ptr;
ptr = &k;
printf("%d",*ptr);
}
Answer Posted / ankush
i also have a compilation error.....
""Cannot convert 'int_ss*' to 'char*' in function main()""
why its so....???
i want some answer.....
is my compiler wrong....
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the header files used in c language?
What is the size of empty structure in c?
How can I do peek and poke in c?
Tell me what is the purpose of 'register' keyword in c language?
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
What is typeof in c?
Can you apply link and association interchangeably?
How do we declare variables in c?
What are the types of assignment statements?
What is the explanation for prototype function in c?
What is the maximum length of an identifier?
Where does the name "C" come from, anyway?
Explain what is wrong in this statement?
What is dynamic variable in c?
Explain what is the most efficient way to store flag values?