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 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
Get step-by-step solutions from verified subject matter experts
