answersLogoWhite

0

The printf() function prints a formatted string.

User Avatar

Wiki User

9y ago

What else can I help you with?

Related Questions

What is printf function?

Printf function is used in c language. Printf is used to print something to the standard output. ex: printf ('welcome');


How do you print in c?

printf(format_string, ...);


How can print bhawana in c?

printf"Bhawana"


How do you print to the screen in C plus plus?

printf();


What is a C program to print initials?

printf ("initials");


Write a for loop in C to print the 7 stars row?

... int i; for( i = 0; i < 7; ++i ) { printf("*"); } printf("\n"); ...


How will you print percent in c language?

putchar ('%'); puts ("%"); printf ("%%"); etc...


How do you print two slashes - right after another - in c?

You will have to use "printf" when you want to print two slashes one after another in c.


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


How do you print percent sign in c?

putc('%'); write(1, "%", 1); printf("%%"); printf("%c", '%'); will all each put a % character (percent sign) on stdout.


How do you print 0001 in C programming?

its quite simple using printf function


What is main function of printf in a C program?

The syntax for printf is: int printf(const char *format, ...); Simple usage examples: 1. Print character literal: printf("%c", 'a'); 2. Print character variable: printf("%c", my_char); 3. Print string literal: printf("%s", "hello world"); 4. Print string variable: printf("%s", my_string); 5. Print integer variable: printf("%d", my_integer); 6. Print floating-point variable: printf("%f", my_float);