Online C programming exercises


int main ()
{
What will be printed out in the terminal?

char ch ='a' ;
char ch1='b';
char* p1, *p2;

p1 = &ch;
p2 = p1;
p2 = &ch1;
printf ("%c %c", *p1, *p2);
return 0;
}

a a
a b
b a
b b


Next Exercise