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 ?    64 Yes 3 No

Answer / arti

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

Is This Answer Correct ?    43 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 ?    16 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

User define function contain thier own address or not.

2 Answers  


Which of the following data structures is on average the fastest for retrieving data: 1) Binary Tree 2) Hash Table 3) Stack

3 Answers  


WAP that prints the number from 1 to 100. but for multiplies of three print "XXX" instead of the number and for the multiplies of five print "YYY" . for number which are multiplies of both three and five print "ZZZ"

3 Answers  


what are the compilation steps? ( i want inside the compiler )

2 Answers  


Is reference used in C?

1 Answers  


The program to allow the characters from the input received and send this function to a function check if the characters between letters a to z is a function of y joins as the characters main and output to otherwise return to the original function of the y characters

0 Answers  


WHAT IS HEADER?

8 Answers   ProKarma, TCS,


discuss the steps needed to get a program from source code to executable in a system?

1 Answers  


int *p=20; if u print like dis printf("%d",p); o\p:- 20; how is it possible? plz give me the explanation.

14 Answers   Global Edge,


what is the c source code for the below output? 1 0 1 1 0 1 0 1 0 1 1 0 1 0 1

0 Answers  


what will be maximum number of comparisons when number of elements are given?

0 Answers  


#include<stdio.h> #include<conio.h> void main() { clrscr(); int a=0,b=0,c=0; printf("enter value of a,b"); scanf(" %d %d",a,b); c=a+b; printf("sum is %d",c); getch(); }

2 Answers  




Categories