a simple program in c language
Answers were Sorted based on User's Feedback
Answer / love agarwal
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf("hello");
getch();
}
Is This Answer Correct ? | 5 Yes | 0 No |
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 |
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 |
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 |
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 |
What are the key features in c programming language?
How can a program be made to print the name of a source file where an error occurs?
Explain the use of keyword 'register' with respect to variables.
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?
What is advantage of pointer in c?
What is declaration and definition in c?
Is there sort function in c?
wat is the meaning of c?
main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); } wat is the o/p and how?
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
Explain what is the use of a semicolon (;) at the end of every program statement?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?