[BITS 32] [global start] [extern _k_main] ; this is in the c file start: call _k_main cli ; stop interrupts hlt ; halt the CPU
Tag Archives: C
struct keyword and getopt_long
The getopt() function parses the command-line arguments. Its arguments argc and argv are the argument count and array as passed to the main() function on program invocation. An element of argv that starts with ‘-‘ (and is not exactly “-” or “–“) is an option element. The characters of this element (aside from the initial …
square root = %f
/* Jeffrin Jose <jeffrin@rocketmail.com> Licensed GPL v3 Copyright 2010 GPL –> http://www.gnu.org/copyleft/gpl.html */ #include<stdio.h> main() { float x,y; printf(“\n Input an Integer :” ); scanf(“%f”,&x); y=sqrt (x); printf(” square root = %f”,y); getch(); }
remainder 100/?
/* Jeffrin Jose <jeffrin@rocketmail.com> Licensed GPL v3 Copyright 2010 GPL –> http://www.gnu.org/copyleft/gpl.html */ #include<stdio.h> main () { int number,b; printf (“Enter a Number \n”); scanf(“%d”,&number); b=100%number; printf(“\n The Remainder with 100 = %d “,b); getch(); }