a simple program in c language

Answers were Sorted based on User's Feedback



a simple program in c language..

Answer / love agarwal

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf("hello");
getch();
}

Is This Answer Correct ?    5 Yes 0 No

a simple program in c language..

Answer / rahul

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int i=5;
printf("%d",i);
getch();
}

Is This Answer Correct ?    3 Yes 2 No

a simple program in c language..

Answer / chaitali

#include <stdio.h>
#include<conio.h>
int main()
{
int num;
num=1;
clrscr();
printf("My favorite number");
printf("is %d because it is first.\n",num);
getch();
return 0;
}

Is This Answer Correct ?    4 Yes 4 No

a simple program in c language..

Answer / ragu

#include<stdio.h>
void main(void)
{
int a;
clrscr();
printf("enter a number ");
scanf("%d",&a);

printf("you enter the number %d",a);
getch();
}

Is This Answer Correct ?    0 Yes 0 No

a simple program in c language..

Answer / ragu

#include<stdio.h>
void main(void)
{
int a;
clrscr();
printf("enter a number ");
scanf("%d",&a);

printf("you enter the number %d",a);
getch();
}

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

What is %d called in c?

0 Answers  


Is both getch() and getchar() functions are similar? if it is similar means why these two functions are used for same usage? if it is not similar means what is the difference?

1 Answers   Infosys,


How many levels of indirection in pointers can you have in a single declaration?

0 Answers   Agilent, ZS Associates,


what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m); }

7 Answers  


Do you know null pointer?

0 Answers  


How do we swap or interchange any 2 numbers without using Temporary variable...Anybody can pls answer it.. Thanks in Advance

8 Answers  


What is the use of static variable in c?

0 Answers  


FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.

0 Answers   Wilco,


What do you mean by scope of a variable in c?

0 Answers  


here is a link to download Let_Us_C_-_Yashwant_Kanetkar

3 Answers   Microsoft,


What is an identifier?

0 Answers  


Explain how can I open a file so that other programs can update it at the same time?

0 Answers  


Categories