skip to main | skip to sidebar

Sunday, May 10, 2009

How to use printf in c with out ;?

if i want to print india how can i print without using ;

How to use printf in c with out ;?
Try this code





int main()


{


int c = 0;


if (printf("India\n") == 0)


c = 1;


return c;


}





You cannot avoid using ; but you can compare the return value


of printf.
Reply:by using #define


Posted by qxwrtu at 5:43 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

c++ printf

Blog Archive

  • ▼  2009 (160)
    • ►  July (144)
    • ▼  May (16)
      • What does 'f' represent in "printf" function in C ...
      • Suggest a definition for printf statement in c?
      • Can someone explain to me in the simplest form. wh...
      • What is the difference between stream output and p...
      • What does f stand for in printf in c programming?
      • How to use printf in c with out ;?
      • What do printf in c?
      • Where can i find assembly code of c functio like ...
      • Can we write a function similar to printf() in C L...
      • Write a program in c for printf function instead o...
      • In C/C++, is printf faster than cout?
      • What are .dll files? Are these file get called in ...
      • How do you printf quotation marks " " in C?
      • C++ help.... printf command?
      • Java printf problem, System.out.printf("%*c", n, '...
      • Simple error in C; printf function.?

About Me

qxwrtu
View my complete profile
  • c++ get
  • c++ printf
  • c++ language
  • c++ game
  • c++ test