BuzzTalk
Would you like to react to this message? Create an account in a few clicks or log in to continue.

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

2 posters

Go down

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

Post  aditya 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 : 34
Location : Pune
Registration date : 2008-08-25

Back to top Go down

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

Post  Quicksilver 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.
Quicksilver
Quicksilver

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

Back to top Go down

Back to top


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