Tuesday, 26 February 2013

C/C++ Puzzles: PART - 21

URL in C/C++ Program 

  Recently I come across a program similar to the program given below. At first I was surprised that there are no errors. But after some time I understood the reason. Try to find out the reason why there are no errors in the program. 


int main()
      printf("\nNo Error? Surprise!!!\n");
     return 0;

If you haven't got the answer please select the Red Colour Field given below using your mouse.

http: acts as a label in C/C++.
//www.computingforbeginners.blogspot.in/ is a comment in C/C++. So there are no Errors.

No comments:

Post a Comment