u should use only c or c++ progrmming language and should not use semi colon anywhere not even to terminate stament.
Write a c programe to print a string without using semi colon in any of the statements.?
%26lt;pre%26gt;
#include %26lt;stdio.h%26gt;
int main(int argc, char **argv) {
while( putchar( argv[1][(argc++)-2] )) {
}
}
%26lt;/pre%26gt;
Usage:
gcc -o print print.c
./print "Hello World."
Reply:I learned a bit of c++ and c and you can't do it without semicolons
int main{
st::cout %26gt;%26gt; 'Hello world' ;
};
you need semicolons!!!
Reply:You really need to do your own homework. You'll never learn otherwise.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment