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 different between auto and local static? why should we use local static?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
What are the advantages of Macro over function?
Can we add pointers together?
What are identifiers in c?
When a c file is executed there are many files that are automatically opened what are they files?
What is malloc() function?
What is a char c?
What is a good way to implement complex numbers in c?
What functions are used for dynamic memory allocation in c language?
In C language, a variable name cannot contain?
Create a simple code fragment that will swap the values of two variables num1 and num2.
What is variable and explain rules to declare variable in c?
What is the process to create increment and decrement stamen in c?