write a program that will print %d in the output screen??

Answers were Sorted based on User's Feedback



write a program that will print %d in the output screen??..

Answer / furquan

int main()
{
printf("%%d");
return 0;
}

Is This Answer Correct ?    96 Yes 7 No

write a program that will print %d in the output screen??..

Answer / vignesh1988i

void main()
{
printf("%%d");
getch();
}

where %% will print % and d will be printed asual

thank u

Is This Answer Correct ?    39 Yes 2 No

write a program that will print %d in the output screen??..

Answer / arti

main()
{ char ch[]="%d";
printf("%s",ch);
}

Is This Answer Correct ?    46 Yes 13 No

write a program that will print %d in the output screen??..

Answer / mahendra vishwakarma

#include<stdio.h>
void main()
{
printf("%%d"); //this will print as %d output.
}

Is This Answer Correct ?    21 Yes 0 No

write a program that will print %d in the output screen??..

Answer / mizanur

int main()
{
printf("%%d");

return 0;
}

Is This Answer Correct ?    5 Yes 0 No

write a program that will print %d in the output screen??..

Answer / j j ramesh

# include <stdio.h>

void main()
{
puts("%d");
}

Is This Answer Correct ?    9 Yes 5 No

write a program that will print %d in the output screen??..

Answer / aditya singh

//wap to print %d on the screen//
#include<stdio.h>
main()
{
char a = '%';
char b = 'd';
printf("%c",a);
printf("%c",b);
getch();
}

Is This Answer Correct ?    0 Yes 0 No

write a program that will print %d in the output screen??..

Answer / ratish

void main()
{
printf("\%d");
}

Is This Answer Correct ?    1 Yes 24 No

write a program that will print %d in the output screen??..

Answer / sachin tyagi

main()
{
printf("%d");
}

Is This Answer Correct ?    2 Yes 59 No

Post New Answer

More C Interview Questions

What is the use of getch ()?

0 Answers  


How can we see the Expanded source code and compiled code for our source program in C?

1 Answers  


Which is better pointer or array?

0 Answers  


What do you mean by command line argument?

0 Answers   TCS,


#include<stdio.h> main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300

4 Answers   Tieto,






Write a C program to count the number of email on text

0 Answers  


void main() {int a[5],i,b=16; for(i=0;i<5;i++) a[i]=2*i; f(a,5,b); for(i=0;i<5;i++) printf("\n %d",a[i]); printf("\n %d",b); } f(int *x,int n,int y) { int i; for(i=0;i<n;i++) *(x+i)+=2; y=y+2; }wat r the errors in the prg.and improvise the prg to get o/p.?

2 Answers   TCS,


what is the need for main function in c?

5 Answers  


why little endian and big endian came?y they using differently? y they not used commonly ?wt is application of little and big ?

1 Answers  


What is the difference between arrays and pointers?

0 Answers  


main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the output?

9 Answers   Ramco,


Should I learn data structures in c or python?

0 Answers  


Categories