C++ Void Pointer and Null Pointer | |
C Void Pointer and Null Pointer In this C tutorial you will learn about two interesting types of pointers; void pointers and Null Pointer These pointers will be discussed in conjunction with syntax usage and example mosgoogle center Pointer to Void General Syntax void pointer variable; Void is use |
|
C++ Pointers | |
C Pointers Concept of Pointers Every storage location of memory has an associated address Address is a number that grows sequentially For every program placed in memory each variable or function in the program has an associated address mosgoogle center The address of operator The address of operator |
|
C++ Pure Virtual Function and Base Class | |
C Pure Virtual Function and Virtual Base Class In this C tutorial you will learn about pure virtual function declaration of pure virtual function and virtual base class virtual base class and how to implement a virtual base class explained with examples mosgoogle center What is Pure Virtual Function |
|
C++ Function Passing Types | |
C Function Passing Types In this C tutorial you will learn about function passing types two types of arguments passing in functions passed by value and passed by reference are discussed here mosgoogle center The arguments passed to a function can be performed in two ways Passed |
|
What is DECODE function used for? | |
DECODE is used to decode a CHAR or VARCHAR2 or NUMBER into any of several different character strings or numbers based on value. That is DECODE does a value-by-value substitution. For every value that is given in the DECODE function it makes an if then check and matches the value. The general format |
|
Convert a String into an Integer | |
How to convert a string into an integer in C program?
This is done by using the function named as atoi(). This function atoi() is present in the header file named as <stdlib.h>. When programmers use this function they must include the header file by the statement
#include <stdl |
|
printf() Function Return Value | |
What is the return value from printf() function?
printf function always returns the number of characters printed. Let us understand this with an example:
main()
{
int a=10;
printf("%d",printf("%d %d %d", a,a,a));
}
In this above program the inner printf i |
|
How is the main() function declared? | |
The declaration of main can be done as
int main()
One more declaration that can be taken by main is command line arguments form
int main(int argc, char *argv[])
or this can also be written as
int main(argc, argv)
int argc;
char *argv[];
NOTE: It is not possible for one to declare the main |
|
How does the function call within function get evaluated? | |
Whenever we have more than one function which is called for a finite number of times then such a function gets evaluated from inside out.
Let us understand this concept with an example.
For instance consider a function sample called within it 4 times as given in program below:
main()
{
int a=50; |
|
|
|