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 ?    65 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 ?    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

Write a C program to count the number of email on text

0 Answers  


What is the output of below code? main() { static in a=5; printf("%3d",a--); if(a) main(); }

4 Answers   TCS, Infosys,


Program to find largest of three numbers without using comparsion operator?

3 Answers  


can we print any string without using terminator?

2 Answers   Infosys, TCS,


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

0 Answers   CSC, Wipro,


Given a single Linked list with lakhs of nodes and length unknown how do you optimally delete the nth element from the list?

1 Answers   Oracle,


Give the logic for this #include<stdio.h> #include<conio.h> void main() { clrscr(); int a=10,b; b=++a + ++a; printf("%d", b); getch(); } Output: 24......How?

2 Answers   Accenture,


4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it. i have done maximum par but i m findind problem in the commented area. please help...

3 Answers  


what is the use of keyword volatile??

4 Answers   LG Soft,


If "AaBbCc" is passed to the char char x(*a) { a[0]?x(a+1):1; printf("%c",a[0]); return 1; } what will be the output?

6 Answers   Hughes,


code for inverse a matrix

0 Answers  


pierrot's divisor program using c or c++ code

0 Answers  




Categories