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 typedef in structure in c?

0 Answers  


What is variable initialization and why is it important?

0 Answers  


What is function and its example?

0 Answers  


Explain what does it mean when a pointer is used in an if statement?

0 Answers  


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

0 Answers   Infosys,






how to construct a simulator keeping the logical boolean gates in c

0 Answers  


What is the usage of the pointer in c?

0 Answers  


what is default constructor?

2 Answers   HCL,


Which of the following is not an infinite loop ? a.while(1){ .... } b.for(;;){ ... } c.x=0; do{ /*x unaltered within theloop*/ ... }while(x==0); d.# define TRUE 0 ... while(TRUE){ .... }

7 Answers   TCS,


can anyone suggest some site name..where i can get some good data structure puzzles???

0 Answers  


What does volatile do?

0 Answers  


What is pass by reference in functions?

0 Answers  


Categories