How will you print % character?
a. printf(“\%”)
b. printf(“\\%”)
c. printf(“%%”)
d. printf(“\%%”)
Answers were Sorted based on User's Feedback
Answer / ajay kumar
. printf("\%")
this is most genertally prefered for printing a %
u can also print % by printf("%");
but according to K&R(a standrad textbvuk by developer of C)
"\%" is prefered
If u have any queries mail me @ kumar.guttikonda@gmail.com
Is This Answer Correct ? | 7 Yes | 1 No |
Answer / govind verma
using printf("%%");
bcoz compiler place %% to % ....... this grammr written in compiler,,,,,,
Is This Answer Correct ? | 3 Yes | 1 No |
‎#define good bad main() { int good=1; int bad=0; printf ("good is:%d",good); }
main() { while (strcmp(“some”,”some\0”)) printf(“Strings are not equal\n”); }
main(int argc, char *argv[]) { (main && argc) ? main(argc-1, NULL) : return 0; } a. Runtime error. b. Compile error. Illegal syntax c. Gets into Infinite loop d. None of the above
how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns
Develop a routine to reflect an object about an arbitrarily selected plane
How we print the table of 3 using for loop in c programing?
main() { extern int i; i=20; printf("%d",i); }
create a login program that ask username and password. if you input username or password 3 times wrong, the program will terminate else the program will prompt a message "congratulations"
program to find magic aquare using array
C statement to copy a string without using loop and library function..
Is it possible to print a name without using commas, double quotes,semi-colons?
write a program to Insert in a sorted list