silly questions !!!!!
2 posters
Page 1 of 1
silly questions !!!!!
hey guys,
Though we know the syntax of C programming language well, yet I'm going to post here some really silly question......
1. Is it possible to write a program without main?
2. Is it possible to multiply two number without using *?
3. Is it possible to write a program that can print source code of itself ?
4.
main(){int a;
a = (7==5?4 : 3)
cout<<a;
}
what will be the output..?
cheers!!
bazlurrr
Though we know the syntax of C programming language well, yet I'm going to post here some really silly question......
1. Is it possible to write a program without main?
2. Is it possible to multiply two number without using *?
3. Is it possible to write a program that can print source code of itself ?
4.
main(){int a;
a = (7==5?4 : 3)
cout<<a;
}
what will be the output..?
cheers!!
bazlurrr
Last edited by bit0112-rokon on Sun Nov 01, 2009 2:43 pm; edited 5 times in total
Re: silly questions !!!!!
Dear friend,
I have a tricky answer for your 2nd question........
You can use plus(+ ) instead of asterisk(*)...
e.g. we can represent 2*4 as 2+2+2+2....
I have a tricky answer for your 2nd question........
You can use plus(+ ) instead of asterisk(*)...
e.g. we can represent 2*4 as 2+2+2+2....
Similar topics
» A silly code!
» Some Cpp questions
» Some Questions regarding Internship report
» Number of slides and many questions :S
» Operating System : Slides and Questions
» Some Cpp questions
» Some Questions regarding Internship report
» Number of slides and many questions :S
» Operating System : Slides and Questions
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Tue Sep 29, 2015 2:45 pm by Sophiawood
» Cisco EHWIC SFP/GE WAN Card
Mon Sep 07, 2015 11:08 am by Sophiawood
» Huawei S1700-28GFR-4P-AC Price
Thu Jun 25, 2015 2:31 pm by Sophiawood
» teach yourself C++ / Herbert Schildt Solutions
Wed Jun 03, 2015 1:52 pm by Abdullah Al Noman
» teach yourself c by herbert schildt pdf
Wed May 13, 2015 11:01 pm by Raquib Ridwan
» ASA 5506X With Firepower ASA5506-K9
Fri Apr 10, 2015 4:31 pm by Sophiawood
» New Trends in Deal Business
Tue Feb 03, 2015 9:38 pm by nersoa
» PoE Power Allocation for WS-C2960S-24PS-L
Wed Nov 05, 2014 11:12 am by Sophiawood
» How to cure back pain
Fri Oct 31, 2014 7:15 pm by Bergen Guildford