Very useful full-forms and some IMPORTANT telephone numbers. (Increase your general knowledge) 👉B. A. — Bachelor of Arts 👉M. A. — Master of Arts 👉B. Sc. — Bachelor of Science 👉M. Sc. — Master of Science 👉B. Sc. Ag. — Bachelor of Science in Agriculture 👉M. Sc. Ag. — Master of Science in Agriculture M. B. B. S. — Bachelor of Medicine and Bachelor of Surgery 👉M. D. — Doctor of Medicine 👉M. S. — Master of Surgery 👉Ph. D. / D. Phil. — Doctor of Philosophy (Arts & Science) 👉D. Litt./Lit. — Doctor of Literature / Doctor of Letters 👉D. Sc. — Doctor of Science 👉B. Com. — Bachelor of Commerce 👉M. Com. — Master of Commerce 👉Dr. — Doctor 👉B. P. — Blood Pressure 👉Mr. — Mister 👉Mrs. — Mistress 👉M.S. — miss (used for female ...
Covert c program to assembly language program Compiler uses -S option to generate assembly language code for the given c source code. Below is the c source code(program.c). #include <stdio.h> int main() { int a, b, c; a = 20, b = 30; c = a + b; printf("Sum of two numbers is %d\n", c); return 0; } C source code can be converted to assembly code using the following command. jp@jp-VirtualBox:~/$ gcc -S program.c jp@jp-VirtualBox:~/$ ls program.c program.s Below is the assembly code for the above given c source code. .file "program.c" .section .rodata .LC0: ...
C program implement analog clock #include <stdio.h> #include <conio.h> #include <string.h> #include <math.h> #include <time.h> #include <graphics.h> #include <dos.h> /* * calculates the position for minute and second needle. * 360 to 90 degree is equivalent to 45 to 0 th minute * in clock. So, store the points in reverse direction(45 to 0) * Once 0 is reached, we need to store points corresponds to * 84th degree to 0 degree in reverse direction(59 to 46). So, * totally we will get 60 points which corresponds to 60 * minute or second position in clock. */ void minSecCalc(int xrad, int midx, int midy, int x[60], int y[60]) { int i, j = 45; for (i = 360; i >= 0; i = i - 6) { ...
Comments
Post a Comment