answersLogoWhite

0

from main-memory to standard output.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Without printf statement semicolon print the statement?

int main (void) { if(printf("Print whatever you want")) { } }


What is the function and syntax of printf statement?

it's not a statement, it's a function: len= printf (format, ...more-parameters...);


Calculate length of string using printf statement only?

printf does return the length: size_t len = printf ("%s", str);


What is the type of printf statement in C?

It is a function.


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


Which condition in if loop lets us to known that both printf statements after if and else will printin c?

I don't really get your point, it is unlikely that both then-statement and else-statement should be executed. I daresay it is impossible.Try me:printf ("before if\n");if (1) printf ("condition is true (non zero)\n");else printf ("condition is false (zero)\n");printf ("after if\n");


What should be given at in if printf hello else world to get the output helloworld that is to make both the statements in ifelse clause to execute what should be given in if clause?

main() { if( !fork() ) printf("Hello"); else printf("World"); } This works fine. if (!printf("hello")) printf("Hello"); else printf(" World\n");


Greatest no among 3 number using nested if statement?

if (a > b && a > c) printf("%d\n", a); else if (b > c) printf("%d\n", b); else printf("%d\n", c);


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.


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.


What will happen if you do not use break statement?

Everywhere in the code when there is no 'break', the running will continue with the next instruction. Example: for (i=0; i<3; ++i) { printf ("i=%d: ", i); switch (i) { case 2: printf ("two "); case 1: printf ("one "); case 0: printf ("zero "); } printf ("\n"); } The output: 0: zero 1: one zero 2: two one zero


How do you use a c program-continue statement in a block?

int f(int num) { int i; for (i = 0; i < 10; i++) { if (num > i) continue; printf("aaa"); } } printf will only be reached when i <= num.