Tag: Pointer
Total: 11 Posts
Posts of Tag: Pointer
  1. Difference between Reference and Pointer in C++

    Difference between Reference and Pointer in C++ Here you will learn about difference between reference and pointer in C++. Reference: Reference contains address of a variable. It can be called as alte...Learn More
    PointerC++ Programs
  2. C++ program to swap two numbers using pointers

    C++ program to swap two numbers using pointers #include <iostream.h> #include <conio.h> void main() { clrscr(); int *a, *b, *temp; cout << "Enter value of a and b:"; cin >...Learn More
    PointerC++ Programs
  3. C Function Pointer

    C Function Pointer We declare a pointer to integer, pointer to character or pointer to array. Similarly we can declare a pointer to function or a function pointer. Same as like variables, functions also have s...Learn More
    PointerFunctionC Tutorials
  4. void pointer in C

    void pointer in C When we declare a pointer we specify its type which will be same as the type of the variable whose address the pointer will contain. For example if we will declare an integer pointer then it ...Learn More
    PointerC ProgramsC Tutorials
  5. Null Pointer in C

    Null Pointer in C In this tutorial you will learn about null pointer in C with examples. When we declare a pointer, by default it points to some random memory location. If you will access the pointer then it ma...Learn More
    PointerC Programs
  6. Pointer to Pointer or Double Pointer in C

    Pointer to Pointer or Double Pointer in C In this tutorial you will learn about pointer to pointer or double pointer in C. Pointer is used to store memory address of variable. Double pointer is used to store me...Learn More
    PointerC Programs
  7. Arrays in C (Array of Pointers and 3D Array) – Part 7

    Arrays in C (Array of Pointers and 3D Array) – Part 7 In this tutorial I will tell you about two topics i.e. array of pointers and 3D arrays. So without wasting any time lets head on to the first topic of this...Learn More
    ArrayPointerC ProgramsC Tutorials
  8. C++ Program to Compare Two Strings Using Pointers

    C++ Program to Compare Two Strings Using Pointers In below program we are comparing two string with the help of pointers, without using strcmp() function. A user defined function str_cmp() is created which tak...Learn More
    PointerC++ Programs
  9. C/C++ Program to Read Infinite Numbers and Arrange Them in Ascending Order

    In this program we are reading infinite numbers and then arranging them in ascending order. Here infinite means, the program should read numbers until a particular number is entered to terminate the reading ...Learn More
    PointerC ProgramsC++ ProgramsBubble Sort
  10. C program to swap two numbers using pointers

    #include <stdio.h> #include <conio.h> void main() { int *a, *b, *temp; clrscr(); printf("Enter two mumbers:"); scanf("% d % d", a, b); printf("Before Swaping: na = % d b = % d", ...Learn More
    PointerC Programs
  11. C program to read and display an array using pointer

    #include<stdio.h> #include<conio.h> void main() { int a[50],*p,i,n; clrscr(); p=a; printf("Enter size of array:"); scanf("%d",&n); printf("Enter elements of array:"); ...Learn More
    PointerC Programs