Tag: Pointer
Total: 11 Posts
Posts of Tag: Pointer
Total: 11 Posts
Posts of Tag: Pointer
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 MorePointerC++ ProgramsC++ 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 MorePointerC++ ProgramsC 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 MorePointerFunctionC Tutorialsvoid 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 MorePointerC ProgramsC TutorialsNull 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 MorePointerC ProgramsPointer 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 MorePointerC ProgramsArrays 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 MoreArrayPointerC ProgramsC TutorialsC++ 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 MorePointerC++ ProgramsC/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 MorePointerC ProgramsC++ ProgramsBubble SortC 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 MorePointerC ProgramsC 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 MorePointerC Programs