{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

H includestdioh definelim4 defineprintnprintfdn

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ot;%d",num[j]); } getch(); } #include<conio.h> #include<stdio.h> #define LIM 4 void main(void) { clrscr(); int num[LIM] = {1,2,3,4}; printf("%d",num[2]); getch(); } #include<conio.h> #include<stdio.h> #define LIM 4 #define PRINT(N) printf("%d",N); #define ADD(X,Y) (X+Y) void main(void) { clrscr(); int num[LIM] = {1,2,3,4}; int result; PRINT(ADD(num[2],num[3])); getch(); } #include<conio.h> #include<stdio.h> void main(void) { clrscr(); char ch[24]; for(int i=0; i<=7; i++) { ch[i] = getch(); } getch(); } Exercises • get the string and print reverse of it. • get string than find the numbers in string and sum all number • get the temperature for each day and find out the average , lowest and maximum average. • using preprocesser directives create calculator and print error on default using preprocessor directives. • find out and calculate vowels used in a string Note: use character type array for string get array using for loop , while loop and do while...
View Full Document

{[ snackBarMessage ]}