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


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


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

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


How can you use a single scanf statement to read in three integers from the keyboard?

#include<stdio.h> #include<conio.h> int main(void) { int a,b,c; printf("write three numbers:\n"); scanf("%d %d %d", &a,&b,&c); printf("You entered %d , %d and %d",a,b,c); getch(); }