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 encapsulation?

2 Answers  


Is array name a pointer?

0 Answers  


what is the function of .h in #include<stdio.h> in c ?

23 Answers   HCL, IBM, Wipro,


write a program to find out number of on bits in a number?

17 Answers   Huawei, Microsoft,


what is the associativity of bitwise OR operator?

1 Answers  






what is c?

7 Answers   Tech Mahindra,


write a program fibonacci series and palindrome program in c

0 Answers   Aditi Placement Service,


Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.

0 Answers  


i want the code for printing the output as follows 4 4 3 3 2 2 1 1 0 1 1 2 2 3 3 4 4

2 Answers  


What are Storage Classes in C ?

32 Answers   CTS, HP, IBM, Maharaja Whiteline, Tamil Nadu Open University TNOU, TATA, TCS, Wipro,


swap 2 numbers without using third variable?

0 Answers   IBS,


What does emoji p mean?

0 Answers  


Categories