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 output of the program?? #include<stdio.h> main ( ) { int a=010,sum=0,tracker: for(tracker=0;tracker<=a;tracker++) sum+=tracker; printf(ā€œ %d\nā€,sum); } what is the difference between a=10 and a=010??

3 Answers   Oracle,


Name the language in which the compiler of "c" in written?

3 Answers   Bajaj,


write a c/c++ programthat connects to a MYSQL server and checks if the INNoDB plug in is installed on it.If so your program should print the total number of disk writes by MYSQL.

0 Answers   BirlaSoft,


write a program for size of a data type without using sizeof() operator?

22 Answers   HCL, IBM,


Where in memory are my variables stored?

0 Answers  






#include<stdio.h> main() { int a=1; int b=0; b=++a + ++a; printf("%d %d",a,b); }

7 Answers   Infosys,


What are dangling pointers in c?

0 Answers  


Is it better to use a macro or a function?

0 Answers  


Does c have circular shift operators?

0 Answers  


what would be the output of the following prog? Justify your answer? main() { unsigned char ch; unsigned char i; ch = -255; printf("%d",ch); i = -1; printf("%d",i); }

1 Answers  


what is different between auto and local static? why should we use local static?

0 Answers  


What is the use of #include in c?

0 Answers  


Categories