answersLogoWhite

0

Without printf statement semicolon print the statement?

Updated: 8/17/2019
User Avatar

Pkhatrimca

Lvl 1
13y ago

Best Answer

int main (void)

{

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

{

}

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Without printf statement semicolon print the statement?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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.


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()){} }


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


Print 200 with and without sign?

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


How to print float or double without using printf?

With functions like ecvt, fcvt, gcvt.


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 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..........


To print the name without using semicolon?

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


How would you define Continue statement?

A continue statement is used to "branch" to the end of a loop without exiting the loop. If we wish to exit the loop entirely, use a break or return statement.for (int i=1; i