Saturday, 17 August 2013
Home »
C language
» Types of Pointer in C
Types of Pointer in C
Related Posts:
Difference between printf("%d") and printf("%d",x) 1. When we write printf("%d",x); the compiler will print the value of x. But where there is nothing after %d so compiler will show garbage value. 2. When we use %d the compiler internally uses it to access the a… Read More
Difference between Malloc and Calloc 1. calloc(...) allocates a block of memory for an array of elements of a certain size. By default the block is initialized to Zero. The total number of memory allocated will be (number_of_elements * &… Read More
Difference between Declaring a variable , Defining a variable ,Internal static variable and External static variable Declaring a variable Declaring a variable means describing its type (data type) but not allocating any space for it. Defining a variable: Defining a variable means declaring it and also allocating space to hold… Read More
Types of Pointer in C Pointer is of five types:: 1.Wild pointer: A pointer which has not been initialized is known as wild pointer. int *ptr; printf("%d",*ptr); //Output: Garbage Value 2.Dangling pointer: If any pointer is pointin… Read More
How to print Hello with out using ;(semi-colon)? This can be done using following ways: 1.#include<stdio.h> void main(){ if(printf("Hello world")){ } } 2.#include<stdio.h> void main(){ … Read More
0 comments:
Post a Comment