Wednesday, April 22, 2020

Pointers in C

  • Flowchart :


  • Syntax :
type *var-name;
  • Program :
#include <stdio.h>
#include <conio.h>
void main()
{
  int var = 5;
  clrscr();
  printf("\n----------------POINTERS----------------");
  printf("var: %d\n", var);
  printf("address of var: %p", &var);
  getch();
}

  • Output :

No comments:

Post a Comment

Function Overloading in C++

https://monitechvenkat1620.blogspot.com Program : #include <iostream> using namespace std; int c(int x, int y) {   return...