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 |
write the function int countchtr(char string[],int ch);which returns the number of timesthe character ch appears in the string. for example the call countchtr("she lives in Newyork",'e') would return 3.
which will be first in c compiling ,linking or compiling ,debugging.
Is both getch() and getchar() functions are similar? if it is similar means why these two functions are used for same usage? if it is not similar means what is the difference?
program for following output using for loop? 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5
How do you define a string?
Can a pointer be null?
which is the best site or book for learning C...and i need the content for C..how to get the good programming skills....? can plz suggest me....
what is the disadvantage of using macros?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
Famous puzzles which are generally asked by companies during interviews ?
What is return in c programming?
can we define a function in structure?