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




Answers were Sorted based on User's Feedback



Answer / furquan

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

Is This Answer Correct ?    66 Yes 3 No

Answer / arti

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

Is This Answer Correct ?    44 Yes 9 No

Answer / vignesh1988i

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

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

thank u

Is This Answer Correct ?    33 Yes 1 No




Answer / mahendra vishwakarma

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

Is This Answer Correct ?    17 Yes 0 No

Answer / j j ramesh

# include <stdio.h>

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

Is This Answer Correct ?    8 Yes 4 No

Answer / mizanur

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

return 0;
}

Is This Answer Correct ?    1 Yes 0 No

Answer / ratish

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

Is This Answer Correct ?    1 Yes 20 No

Answer / sachin tyagi

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

Is This Answer Correct ?    2 Yes 52 No

Post New Answer





More C Interview Questions

Sir i need notes for structure,functions,pointers in c language can you help me please

0 Answers   TCS,


how to introdu5ce my self in serco

0 Answers  


what is real time system?what is the differance between hard and soft real time systems

2 Answers  


What is encapsulation?

2 Answers  


Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.

0 Answers  






How to reverse a string using a recursive function, without swapping or using an extra memory?

31 Answers   Wipro, TCS, Sony, Cisco, Motorola, Mind Tree, Ophio,


what is the diff b/w static and non static variables in C. Give some examples plz.

3 Answers   Wipro,


what is pointer ?

10 Answers   Kernex Micro Systems,


How we can set and clear bit in a byte using macro function?

2 Answers   L&T,


which of the following go out of the loopo if expn 2 becoming false a.while(expn 1){...if(expn 2)continue;} b.while(!expn 1){if(expn 2)continue;...} c.do{..if(expn 1)continue;..}while(expn 2); d.while(!expn 2){if(expn 1)continue;..}

4 Answers   TCS,


what is the maximum no. of bytes calloc can allocate

4 Answers   Mphasis,


program to find a smallest number in an array

15 Answers   Sony, Microsoft,






Categories