Question: Consider the C program below, and tell us what is it supposed to do. #include int main() { int a=10,b=20,p1=8a,p2=&b, temp; p1=p1+p2p2=p1p2p1=p1p2 return 0; }

 Consider the C program below, and tell us what is itsupposed to do. \#include int main() \{ int a=10,b=20,p1=8a,p2=&b, temp; p1=p1+p2p2=p1p2p1=p1p2 return0; \} a. Pointer Program to add two numbers b. The program

Consider the C program below, and tell us what is it supposed to do. \#include int main() \{ int a=10,b=20,p1=8a,p2=&b, temp; p1=p1+p2p2=p1p2p1=p1p2 return 0; \} a. Pointer Program to add two numbers b. The program is incorrect c. Pointer Program to swap two numbers without using the 3 rd variable d. Pointer Program to subtract two numbers e. Pointer Program to swap two numbers using the 3 rd variable \#include stdio.h void main(int argc, char *argv[] ) \{ if(argc

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!