Interview Question
- 0of 0 votes
AnswersSo i have this :
- darkicewb820 March 07, 2016 in United States
#include <stdio.h>
int main()
{
int i = 200, *p, *q;
p = &i; q = p;
*q = *q + 1;
printf("*p = %d\n", *p);
return 0;
}
I need to modify the program by adding another integer pointer variable r which is also an alias for variable i. Add print statements to output the dereferenced values of q and r.| Report Duplicate | Flag | PURGE
C
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.