ccplusplus.com
Learn C, C++ Concepts
Saturday, September 10, 2011
program without semicolon in c
/****************************************************** * File : create-star-of-numbers.c * Author : Saurabh Gupta * Source : http://saurabhgupta0527.blogspot.com/ * Created : PM 05:51 10 September 2011 * Note : there are 3 ways that I have mentioned * uncomment and use that as there are 3 * main function *****************************************************/ #include <stdio.h> #include <stdlib.h> #include <unistd.h> // Solution: 1 int main(){ if(printf("Hello world")){ } return 0; } // Solution: 2 /* int main(){ while(!printf("Hello world")){ } return 0; } */ // Solution: 3 /* int main(){ switch(printf("Hello world")){ } return 0; } */
See also
Other popular tricky C Sample Codes and language Concept
.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment