main()
{
int *ptr=(int*)malloc(sizeof(int));
*ptr=4;
printf("%d",(*ptr)+++*ptr++);
}
Answer Posted / aravind
I think it gives syntax error because there is no operation in C which says P+++ just P++.If he can seperate that one + than the above ans is will be 5+5=10.
| Is This Answer Correct ? | 5 Yes | 35 No |
Post New Answer View All Answers
What is difference between structure and union in c programming?
What is %d used for?
What are keywords in c with examples?
What is the difference between union and structure in c?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
What is the use of getchar() function?
Write a program that accept anumber in words
How do we declare variables in c?
what do the 'c' and 'v' in argc and argv stand for?
Explain about the functions strcat() and strcmp()?
Can two or more operators such as and be combined in a single line of program code?
What does == mean in texting?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
What does #pragma once mean?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?