a simple program in c language

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

1594


What is the use of sizeof?

557


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

650


Why doesnt that code work?

602


Explain what is a program flowchart and explain how does it help in writing a program?

650






Describe the order of precedence with regards to operators in C.

633


What are the 5 organizational structures?

570


What is the purpose of realloc()?

672


What is clrscr ()?

639


What are the types of arrays in c?

624


What happens if you free a pointer twice?

610


How many levels deep can include files be nested?

653


What is the code in while loop that returns the output of given code?

1320


Explain pointer. What are function pointers in C?

629


What are the application of c?

651