answersLogoWhite

0

int main (void)

{

if(printf("Print whatever you want"))

{

}

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Can anyone give a logic in c plus plus to print something on screen using printf statement but without semicolon used after printf statement?

try to usecondition ? value if true : value if falseor: if (printf ("Hello")) {}


Can you print string without using semi column in printf statement in c programming?

If you forget the semicolon, your program won't compile.


How do you print the message without using printf and semicolon?

use cout << simple


What is the difference between the usage of semicolon and comma in the print statement in QBASIC?

The print with semi - colon is used to write the text one after the other, without giving the space between them whereas the print with colon is used to type the text one after the other, with giving plenty of spaces between them.


How do you print a statement in c without using any function like printf putc puts etc?

The only way i see is to use : using the right file descriptor


Write a programme in c to print hello world without using statement terminator?

#include<stdio.h> #include<conio.h> void main() { if(printf("hello world")){} if(getch()){} }


Print 200 with and without sign?

printf("%u %+d %+d",200,200,-200); //will print 200 +200 -200


Wap to print 'hellow' in c?

Answerwell if it is about the include statement only then your answer goes simple. extern "C"{int printf(const char *format,..);}int main(){printf("Hello world");}coz all the include statement does is copy the requested file at the asked location.


How to print float or double without using printf?

With functions like ecvt, fcvt, gcvt.


How can you accept sum and print numbers without creating variables?

It is very easy. The program begins here..... /*Program to sum and print numbers without creating variables*/ #include<stdio.h> main() { clrscr(); printf("%d+%d=%d",5,2,5+2); getch(); } /*Program ends here*/ Now just by changing the numbers in the "printf" statement we can add, subtract, multiply and divide the numbers without using variables. Hence the problem is solved..........


Does printf() statement can generate only one line of output?

No, the printf() statement in C can generate multiple lines of output. You can include newline characters (\n) within the string to create line breaks, allowing for formatted output across multiple lines. Additionally, you can call printf() multiple times to print different lines.


To print the name without using semicolon?

#include <stdio.h> int main (void) { puts ("the name"); return 0; }