Two interesting C questions
1. Whats wrong with this code?
int a,b,c;
int *p;
a=100;
c=10;
p=&c;
b=a/*p;
printf(“%d”,b);
2. Why is the following code not wrong?
int a,b,c;
int *p;
http://www.google.com/
a=100;
c=10;
p=&c;
b=a/ *p;
printf(“%d”,b);
Answer:
1. /* starts the comment
2. http: is label, // starts the comment