main()
{
int *ptr=(int*)malloc(sizeof(int));
*ptr=4;
printf("%d",(*ptr)+++*ptr++);
}
Answer Posted / vishnu
hi all,
i think *ptr=(int*)malloc(size of (int));
*ptr=4;
mean malloc(size of (int)) is used to allocate memory of only 4.
hence(*ptr)+++*ptr++)=4+4=8
| Is This Answer Correct ? | 28 Yes | 43 No |
Post New Answer View All Answers
Explain what are reserved words?
Which header file is used for clrscr?
Explain what does the format %10.2 mean when included in a printf statement?
How can I recover the file name given an open stream?
Explain the difference between ++u and u++?
Write a program to check armstrong number in c?
Is using exit() the same as using return?
What is main () in c?
What is the difference between the = symbol and == symbol?
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
What is the use of a semicolon (;) at the end of every program statement?
What is a pragma?
What are c preprocessors?
What is function definition in c?
What is a far pointer in c?