Skip to content

Category Archives: GFacts

What values do the printf() and scanf() functions return ?   printf() : It returns total number of Characters Printed, Or negative value if an output… Read More
The sizeof operator is used to return the size of its operand, in bytes. This operator always precedes its operand. The operand either may be… Read More
The C standard C99 allows inline functions and variable-length-arrays. So following functions are valid in C99 compliant compilers. Example for inline functions inline int max(int… Read More
A large proportion of programming languages are bootstrapped, including BASIC, C, Pascal, Factor, Haskell, Modula-2, Oberon, OCaml, Common Lisp, Scheme, and more. References: http://en.wikipedia.org/wiki/Bootstrapping_%28compilers%29 http://www.oopweb.com/Compilers/Documents/Compilers/Volume/cha03s.htm… Read More
In C, function parameters are always passed by value. Pass-by-reference is simulated in C by explicitly passing pointer values. My Personal Notes arrow_drop_up Save
Following are the things that a derived class inherits from its parent. 1) Every data member that is defined in the parent class (although such members… Read More
In ISO C, you can define main either to take no arguments, or to take two arguments that represent the command line arguments to the… Read More
To know the IP address(es) of a URL/website, nslookup can be used at the shell/command prompt (cmd.exe). It works on both types of operating systems… Read More
In C language, sizeof( ) is an operator. Though it looks like a function, it is an unary operator. For example in the following program,… Read More