Question: What is printed? char var 1 = ' s ' ; char var 2 = ' X ' ; char * ptr 1 , *

What is printed?
char var1='s';
char var2='X';
char *ptr1,*ptr2;
ptr1= &var1;
ptr2= &var2;
*ptr2=*ptr1;
printf("%c\t%c",*ptr1, var2);
What is printed? char var 1 = ' s ' ; char var 2

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 Programming Questions!