answersLogoWhite

0

It is a flag character that precedes the variable type place holder.

%d %i Decimal signed integer.

%o Octal integer.

%x %X Hex integer.

%u Unsigned integer.

%c Character.

%s String. See below.

%f double

%e %E double.

%g %G double.

%p pointer.

%% %. No argument expected.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is the type of printf statement in C?

It is a function.


How can write the name in c plus plus language without using cout statement?

I believe, you can use C-function - printf().


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.


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);


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.


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 will you print percent in c language?

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


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.


What is end if in c language?

The C language uses the ending curly brace to mark the end of an "if" statement, in the same place that other languages use "endif":int main(void){int bunnies = 2;if( bunnies ){printf("Hop, Hop\n");};printf( "Goodbye.\n" );}


How can we write our name in C programming language without using printf?

You can use fputs() instead of printf().


When you can use percent f in c language?

%f is used as a format mask to represent a floating point number.Any of the "formatted" io functions can use this: printf, fprintf, scanf, etc.Example:float n = 1.5;printf("%f", n); // prints the value of n


Write a program to find the largest of three numbers and print the output in ascending order?

void main() { int a,b,c; clrscr(); printf("Enter the value of a:"); scanf("%d",&a); printf("\nEnter the value of b:"); scanf("%d",&b); printf("\nEnter the value of c:"); scanf("%d",&c); if(a>b) { if(a>c) { if(b>c) { printf("c is smallest\n"); printf("b is middle\n"); printf("a is largest\n"); } else { printf("b is smallest\n"); printf("c is middle\n"); printf("a is largest\n"); } } else { printf("b is smallest\n"); printf("a is middle\n"); printf("c is largest\n"); } } else if(b>c) { if(a>c) { printf("c is smallest\n"); printf("a is middle\n"); printf("b is largest\n"); } else { printf("a is smallest\n"); printf("c is middle\n"); printf("b is largest\n"); } } else { printf("a is smallest\n"); printf("b is middle\n"); printf("c is largest\n"); } getch(); }