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
Write a program to generate the Fibinocci Series
Explain the difference between structs and unions in c?
What is meant by initialization and how we initialize a variable?
What is the Purpose of 'extern' keyword in a function declaration?
Why structure is used in c?
Differentiate between functions getch() and getche().
Write a c program to build a heap method using Pointer to function and pointer to structure ?
Where can I get an ansi-compatible lint?
What is the method to save data in stack data structure type?
What is the use of a ‘ ’ character?
What is enumerated data type in c?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
What is queue in c?
Where static variables are stored in c?
What are identifiers and keywords in c?