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
Is that possible to store 32768 in an int data type variable?
How to create struct variables?
How do you determine the length of a string value that was stored in a variable?
What is the use of void pointer and null pointer in c language?
how to write optimum code to divide a 50 digit number with a 25 digit number??
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
What is structure data type in c?
Explain how can a program be made to print the name of a source file where an error occurs?
what is the height of tree if leaf node is at level 3. please explain
What are the advantages of using Unions?
What are the types of assignment statements?
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
Explain what are binary trees?
What is const and volatile in c?
How can you pass an array to a function by value?