write a program that will print %d in the output screen??
Answers were Sorted based on User's Feedback
void main()
{
printf("%%d");
getch();
}
where %% will print % and d will be printed asual
thank u
Is This Answer Correct ? | 39 Yes | 2 No |
Answer / mahendra vishwakarma
#include<stdio.h>
void main()
{
printf("%%d"); //this will print as %d output.
}
Is This Answer Correct ? | 21 Yes | 0 No |
Answer / j j ramesh
# include <stdio.h>
void main()
{
puts("%d");
}
Is This Answer Correct ? | 9 Yes | 5 No |
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 |
What is the use of getch ()?
How can we see the Expanded source code and compiled code for our source program in C?
Which is better pointer or array?
What do you mean by command line argument?
#include<stdio.h> main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300
Write a C program to count the number of email on text
void main() {int a[5],i,b=16; for(i=0;i<5;i++) a[i]=2*i; f(a,5,b); for(i=0;i<5;i++) printf("\n %d",a[i]); printf("\n %d",b); } f(int *x,int n,int y) { int i; for(i=0;i<n;i++) *(x+i)+=2; y=y+2; }wat r the errors in the prg.and improvise the prg to get o/p.?
what is the need for main function in c?
why little endian and big endian came?y they using differently? y they not used commonly ?wt is application of little and big ?
What is the difference between arrays and pointers?
main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the output?
Should I learn data structures in c or python?