C
What is operator? Operator means simple symbol which is used between operands (variable) during mathematical process. There are following categories: 1. arithmetic: + – * / % i.e. a=6 b=2 printf(“a+b =%d”, a+b); printf(“a-b =%d”, a-b); printf(“a/b =%d”, a/b); printf(“a*b =%d”, a*b); printf(“a%b =%d”, a%b); op: a+b =8 a-b =4 a/b =3 a*b =12 a%b […]
Some time we need to take decision depending on some condition. Result will be true or false. If condition fulfil then result is true otherwise false. For Example, student is Pass or Fail is dependent on their Percentage. Suppose Criteria is 50 %. So, student getting Percentage above 50 % then he or she is […]
Following structure helps programmer to develop code easily in C Programming. 1. documentation 2. directive preprocessor stdio.h (printf-scanf) #include<stdio.h> conio.h (clrscr – getch) 3.#define (optional) 4. global declaration(optional) 5. void main() { —-execution start int a,b; ——————>1. declaration part clrscr(); __________________>2. executable part getch(); }—-execution complete 6. […]
Introduction: Initially , C was designed to implement the Unix operating system. But because of flexibility of its use for memory management C programming language is so popular and used so widely . C language is a building block for many other currently known languages. C language has variety of data types and powerful operators. D Riding […]