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


Please Help Members By Posting Answers For Below Questions

Is fortran faster than c?

572


How can you find the day of the week given the date?

609


Why is c so popular?

644


What are reserved words?

650


One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

2155






An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above

643


What is the concatenation operator?

606


Where local variables are stored in c?

554


Is there a way to compare two structure variables?

615


Explain how can type-insensitive macros be created?

566


What is the difference between procedural and declarative language?

643


Why is #define used?

788


what is stack , heap ,code segment,and data segment

2211


can any one provide me the notes of data structure for ignou cs-62 paper

1698


What is atoi and atof in c?

612