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 first address that gets stored in stack according to a C or C++ compiler???? or what will be the first address that gets stored when we write a C source code????????

2 Answers   Apple,


What is the difference between void main() and int main()?

1 Answers  


What is wrong with this statement? Myname = 'robin';

0 Answers  


Which programming language is best for getting job 2020?

0 Answers  


what is ans for this scanf(%%d",c);

1 Answers  


What is ctrl c called?

0 Answers  


What is the difference between ++a and a++?

0 Answers  


write a C program, given number is double without using addt ion and multiplication operator?ex:n=6,ans=12,pls send me ans to goviseenu@gmail.com

6 Answers  


What is the difference between File pointer and Internal Charecter Pointer?

2 Answers   TATA,


what is difference between ++(*p) and (*p)++

17 Answers   Accenture, HCL, IBM,


main() { char ch='356'; Printf("%d",ch); } *OUTPUT*:- -18 *Why?*

1 Answers  


Explain the binary height balanced tree?

0 Answers  


Categories