Can we execute printf() statement without ; and without any error..if yes how?
pls do reply..thnx
can mail d solution 2 <<snipped>> also
Can we execute printf() statement without ; and without any error..if yes how?
pls do reply..thnx
can mail d solution 2 <<snipped>> also
Sure. Just make printf call in a function - but you will need a semicolon SOMEWHERE in the code.
--Code:int dummyFunc(int arg) { return 0; } int main() { return dummyFunc(printf("Hello, World)); }
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
>Can we execute printf() statement without ; and without any error..if yes how?
Why would you want to? Is this another stupid homework assignment that has no bearing on learning C?
My best code is written with the delete key.