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

write the function int countchtr(char string[],int ch);which returns the number of timesthe character ch appears in the string. for example the call countchtr("she lives in Newyork",'e') would return 3.

6 Answers  


which will be first in c compiling ,linking or compiling ,debugging.

3 Answers   Sonata,


Is both getch() and getchar() functions are similar? if it is similar means why these two functions are used for same usage? if it is not similar means what is the difference?

1 Answers   Infosys,


program for following output using for loop? 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5

8 Answers   Aptech, Infosys,


How do you define a string?

0 Answers  


Can a pointer be null?

0 Answers  


which is the best site or book for learning C...and i need the content for C..how to get the good programming skills....? can plz suggest me....

2 Answers  


what is the disadvantage of using macros?

1 Answers   Wipro,


GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA

0 Answers  


Famous puzzles which are generally asked by companies during interviews ?

1 Answers   3D PLM, Yahoo,


What is return in c programming?

0 Answers  


can we define a function in structure?

2 Answers  


Categories