+ 1

write a program without using semicolon....??

4th Jul 2016, 3:38 AM
santosh kumar
santosh kumar - avatar
14 Respostas
+ 2
#include<stdio.h> void main() { if(printf("hello"){} } //it will print hello u can check also without any semi colons
4th Jul 2016, 5:32 AM
santosh kumar
santosh kumar - avatar
+ 2
#include<iostream> void main() { }// nothing to display
5th Jul 2016, 6:48 AM
raju
raju - avatar
+ 1
why?
4th Jul 2016, 5:26 AM
Dorian
+ 1
@santosh kumar your program is not working it shows error
4th Jul 2016, 7:09 AM
DEATH WALKER
DEATH WALKER - avatar
+ 1
It's error becus compiler of this program isnt support for void main
4th Jul 2016, 8:38 AM
JS of MC(not C++ || java)
JS of MC(not C++ || java) - avatar
+ 1
I had mention c also in tags not really from c++
4th Jul 2016, 8:45 AM
santosh kumar
santosh kumar - avatar
+ 1
with <stdio.h> library yes you can
4th Jul 2016, 8:53 AM
berfujan Aydoğdu
berfujan Aydoğdu - avatar
+ 1
main() { if (clrscr() && printf("your name gose here.") && getch()) { } } just try once, that's it.
5th Jul 2016, 8:14 PM
Rahul Gaikwad (RAJRN)
Rahul Gaikwad (RAJRN) - avatar
0
its possible
4th Jul 2016, 4:21 AM
santosh kumar
santosh kumar - avatar
0
I think you mean create program such as ummmm Maybe this is test question
4th Jul 2016, 4:49 AM
JS of MC(not C++ || java)
JS of MC(not C++ || java) - avatar
0
So code must be like this #include<stdio.h> int main() { if(printf("hello")){} } /*prinf is from c not c++ and if one function no need to use semicolon*/
4th Jul 2016, 8:43 AM
JS of MC(not C++ || java)
JS of MC(not C++ || java) - avatar
0
Roger that :D.You made the question That we skip.that is semicolon
4th Jul 2016, 8:52 AM
JS of MC(not C++ || java)
JS of MC(not C++ || java) - avatar
0
great question Santosh Kumar bro..
19th Jul 2016, 4:26 PM
meherDev
meherDev - avatar
26th Jun 2020, 8:44 PM
Brijesh Paghdal
Brijesh Paghdal - avatar