Introduction to Computer Science
Computer Engineering Department
Technical University of Lodz
Home
About
Useful Links
CED
Contact
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
WINDOWS
EXERCISES
Command Prompt
THEORY
EXERCISES
C PROGRAMMING
THEORY
EXERCISES
Interactive Exercises
NUMERAL SYSTEMS
THEORY
EXERCISES