how to print "hai" in c?
Answers were Sorted based on User's Feedback
Answer / subha raman
main()
{
printf("\nab");
printf("\bsi");
printf("\rha");
}
Is This Answer Correct ? | 12 Yes | 0 No |
Answer / vidhya lakshmi d
#include<stdio.h>
void main()
{
printf("\"hai\"");
}
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / shabeer v c
#include<stdio.h>
#include<conio.h>
void main()
{
printf(" \"hai");
printf(" \" ");
getch();
}
Is This Answer Correct ? | 1 Yes | 2 No |
Answer / aruna.r
#include<stdio.h>
#include<conio.h>
void main()
{
char a[4];
int i;
clrscr();
printf("enter the charactor");
for(i=0;i<4;i++)
{
scanf("%c",&a[i]);
}
getch();
}
Is This Answer Correct ? | 0 Yes | 2 No |
#include<stdio.h>
void main()
{
printf("\"HAI""\"");
getch();
}
Is This Answer Correct ? | 1 Yes | 4 No |
How can you find the day of the week given the date?
Explain Function Pointer?
What is the purpose of Scanf Print, getchar, putchar, function?
Develop a flow chart and write a c program to find the roots of a quadratic equation ax2+bx+c=0 using switch and break statement.
What is function prototype?
An interactive c program to read basic salary of 15 persons. each person gets 25% of basic as HRA, 15%of basic as conveyance allowances, 10%of basic as entertainment allowances.The total salary is calculated by adding basic+HRA+CA+EA.Calculate how many out of 15 get salary above 10,000.Rs also print the salary of each employee
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
What are the advantages of using Unions?
18)struct base {int a,b; base(); int virtual function1(); } struct derv1:base{ int b,c,d; derv1() int virtual function1(); } struct derv2 : base {int a,e; } base::base() { a=2;b=3; } derv1::derv1(){ b=5; c=10;d=11;} base::function1() {return(100); } derv1::function1() { return(200); } main() base ba; derv1 d1,d2; printf("%d %d",d1.a,d1.b) o/p is a)a=2;b=3; b)a=3; b=2; c)a=5; b=10; d)none 19) for the above program answer the following q's main() base da; derv1 d1; derv2 d2; printf("%d %d %d",da.function1(),d1.function1(),d2.function1 ()); o/p is a)100,200,200; b)200,100,200; c)200,200,100; d)none 20)struct { int x; int y; }abc; you can not access x by the following 1)abc-->x; 2)abc[0]-->x; abc.x; (abc)-->x; a)1,2,3 b)2&3 c)1&2 d)1,3,4
How many types of functions are there in c?
How can I implement sets or arrays of bits?
write a program in c to print **** * * * * ****