print out of string in this format;
1. "rajesh"
2. \n
3. %d

Answers were Sorted based on User's Feedback



print out of string in this format; 1. "rajesh" 2. \n 3. %d..

Answer / rajesh sharma

sir I am not knowing that answer of Question.
if you know the answer , please mail me the ans my mail
rajeshshrm136@gmail.com


please sir..

Is This Answer Correct ?    5 Yes 1 No

print out of string in this format; 1. "rajesh" 2. \n 3. %d..

Answer / helen sobia

#include<stdio.h>
void main()
{clrscr();
char ch='d';
pritf("1.\t"rajesh"\n");
printf("2.\t\\n\n");
printf("3.\t%%s",ch);
getch();
}

Is This Answer Correct ?    4 Yes 2 No

print out of string in this format; 1. "rajesh" 2. \n 3. %d..

Answer / saikiran

#include<stdio.h>
#include<conio.h>
void main()
{
char ch='d';
clrscr();
printf("1.\t""rajesh""\n");
printf("2.\t\\n\n");
printf("3.\t%%%c",ch);
getch();
}

Is This Answer Correct ?    0 Yes 0 No

print out of string in this format; 1. "rajesh" 2. \n 3. %d..

Answer / sanjay bhosale

No need of extra variable :
You can simply write...
printf("\n1.\t\"Rajesh\"");
printf("\n2.\t\\n");
printf("\n3.\t%%d");

Is This Answer Correct ?    0 Yes 0 No

print out of string in this format; 1. "rajesh" 2. \n 3. %d..

Answer / bibekananda bhuyan

#include <stdio.h>
int main (void)
{
printf("1."Rajesh"
");
printf("2.\n
");
printf("3.%%d");
return(0);
}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

what is the difference between these initializations? Char a[]=”string”; Char *p=”literal”; Does *p++ increment p, or what it points to?

4 Answers  


please help me.. how to write a code of this output?? "Enter range number:"10 1 is an odd number 2 is an even numbers 3 in an odd numbers 4 " to 10" "printing all odd numbers:" 1,3,5,7,9 "printing all even numbers:" 2,4,6,8,10 "sum of all odd numbers:25 "sum of all even numbers:30 using a C Programming ARRAY pleas pleas help.. its my project ..please :(

1 Answers  


How pointer is benefit for design a data structure algorithm?

2 Answers  


Can a pointer point to null?

0 Answers  


What is a good way to implement complex numbers in c?

0 Answers  






Write a program in c to input a 5 digit number and print it in words.

11 Answers  


What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

0 Answers   Wilco,


Which type of language is c?

0 Answers  


Are the variables argc and argv are always local to main?

0 Answers  


what is the difference between unix os and linux os

4 Answers  


Is c easy to learn?

0 Answers  


how can we use static and extern?and where can we use this?

3 Answers   Excel,


Categories