print out of string in this format;
1. "rajesh"
2. \n
3. %d
Answer Posted / 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 |
Post New Answer View All Answers
What is const keyword in c?
What is bubble sort in c?
c program for searching a student details among 10 student details
Is a pointer a kind of array?
program to convert a integer to string in c language'
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
What is the difference between #include and #include 'file' ?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
explain what is a newline escape sequence?
How will you write a code for accessing the length of an array without assigning it to another variable?
What oops means?
program for reversing a selected line word by word when multiple lines are given without using strrev
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250
Write the syntax and purpose of a switch statement in C.
How many levels of indirection in pointers can you have in a single declaration?