Question: What is the output of the C Program? #include int main() { int a[4] int *p; p=a; = {10,50, 30, 50}; printf(%d-%d, *(a+2), p[1]+5);}

What is the output of the C Program? #include int main() { int a[4] int *p; p=a; = {10,50, 30, 50};

What is the output of the C Program? #include int main() { int a[4] int *p; p=a; = {10,50, 30, 50}; printf("%d-%d", *(a+2), p[1]+5);}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The C program in the image defines an integer array a with four elements and then creates a pointer ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!