c program example
else if question in c output of the following program
else if question in c output of the following program
C program to calculate simple interest using function
C program to calculate simple interest using function Let’s understand the steps: Formula To find simple interest Simple Interest = (p * n * r) / 100 where, p = Principal Amount, n = Number of Years / Period … Read more
Which of the following shows the correct hierarchy of arithmetic operations in C
Which of the following shows the correct hierarchy of arithmetic operations in C
In c programing break statement is used to exit from
In c programing break statement is used to exit from
Egg Game Program in C Langauage
Egg Game Program in C Langauage #include<dos.h> #include<graphics.h> #include<stdio.h> #include<conio.h> #include<process.h> #include<dos.h> #include<stdlib.h> #include<iostream.h> union REGS i,o; main() { int initmouse(); int restrictmouseptr(int,int,int,int); int getmousepos(int *,int *,int *); int showmouseptr(); int gd=DETECT,gm,maxx,maxy,x,y,button; initgraph(&gd,&gm,””); int count=0; maxx=getmaxx(); maxy=getmaxy(); setbkcolor(1); setviewport(0,0,maxx,maxy,1); gotoxy(26,1); if(initmouse()==0) { closegraph(); restorecrtmode(); //to go back to normal graphics mode or deleting viewport. … Read more
Basics of file handling in C language
Basics of file handling in C language There are two types of files, which can be handled through C programming language: Character Oriented File Handling/Text files Binary Oriented File Handling/Binary files For file handling, we use a structure named “FILE” which is declared in stdio.h header file. Some important and most useful file handling functions: … Read more