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 are the key features in c programming language?

0 Answers  


How can a program be made to print the name of a source file where an error occurs?

0 Answers  


Explain the use of keyword 'register' with respect to variables.

0 Answers  


There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side?

1 Answers   Hathway,


What is advantage of pointer in c?

0 Answers  






What is declaration and definition in c?

0 Answers  


Is there sort function in c?

0 Answers  


wat is the meaning of c?

9 Answers   CTS, IBM, Wipro,


main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); } wat is the o/p and how?

12 Answers   Tech Mahindra,


which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above

0 Answers  


Explain what is the use of a semicolon (;) at the end of every program statement?

0 Answers  


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

0 Answers   Genpact,


Categories