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 ?    63 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 ?    32 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 3 No

Answer / mizanur

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

return 0;
}

Is This Answer Correct ?    0 Yes 0 No

Answer / ratish

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

Is This Answer Correct ?    1 Yes 19 No

Answer / sachin tyagi

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

Is This Answer Correct ?    2 Yes 50 No

Post New Answer



More C Interview Questions

what is calloc and malloc?

2 Answers  


How would you find a cycle in a linked list?

3 Answers   NSN,


what is difference between ANSI structure and C99 Structure?

1 Answers   Wipro,


Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s2[10]; char s3[]="efgh"; int i; clrscr(); i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd")); printf("%d",i); } What will be the output? A)No output B) A Non Integer C)0 D) Garbage

7 Answers   Accenture,


what is the importance of spanning tree?

0 Answers  


How to reverse a string using a recursive function, with swapping?

5 Answers  


Why we not create function inside function.

0 Answers  


Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.

0 Answers   Convergys,


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

0 Answers  


what is the need for main function in c?

5 Answers  


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

0 Answers  


wat is the difference between array and pointer?

4 Answers   Wipro,




Categories