printing semicolon(;) while using it only once in the program

Go down

printing semicolon(;) while using it only once in the program

Post  aditya on Sun Oct 12, 2008 12:59 pm

nice problem for beginners...

heres my soln.

#include<stdio.h>
#include<conio.h>
#define SC 59 //ascii value of ;
void main()
{
printf("%c",SC);
}

post if you have any other solutions..

aditya

Number of posts : 4
Age : 28
Location : Pune
Registration date : 2008-08-25

View user profile

Back to top Go down

nice solution

Post  Quicksilver on Mon Oct 20, 2008 1:30 pm

If you like these kind of whacky questions, try the C/C++ competetions at PICT. Those guys can get pretty crazy.
avatar
Quicksilver

Number of posts : 36
Age : 30
Location : Pune, Maharashtra, India
Branch : Computer Engineering
Registration date : 2008-08-08

View user profile

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum