Find the output of following C++ programs
Program 1
kw.cpp
Show OutputOutput
kodingwindow@kw:~$ g++ kw.cpp
kodingwindow@kw:~$ ./a.out Unequal kodingwindow@kw:~$
Program 2
kw.cpp
Show OutputOutput
kodingwindow@kw:~$ g++ kw.cpp
kodingwindow@kw:~$ ./a.out 3.140000000000000124344978758017532527446746826171875 kodingwindow@kw:~$
Program 3
kw.cpp
Show OutputOutput
kodingwindow@kw:~$ g++ kw.cpp
kodingwindow@kw:~$ ./a.out 1 1 kodingwindow@kw:~$
Program 4
kw.cpp
Show OutputOutput
kodingwindow@kw:~$ g++ kw.cpp
kodingwindow@kw:~$ ./a.out 11 kodingwindow@kw:~$
Program 5
kw.cpp
Show OutputOutput
kodingwindow@kw:~$ g++ kw.cpp
kodingwindow@kw:~$ ./a.out 1 kodingwindow@kw:~$
What Next?
C++ Control Statements
Advertisement