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 g value paradox?

0 Answers  


Explain what is the difference between a string and an array?

0 Answers  


how to swap 2 numbers in a single statement?

3 Answers  


Is r written in c?

0 Answers  


what is the size of an integer variable?

4 Answers  






#define d 10+10 main() { printf("%d",d*d); }

6 Answers  


Can we increase size of array in c?

0 Answers  


Explain zero based addressing.

0 Answers  


How to get string length of given string in c?

0 Answers  


What are the 4 types of unions?

0 Answers  


What is the difference between struct and typedef struct in c?

0 Answers  


What is the role of this pointer?

0 Answers  


Categories