C

Monday, 26 June 2017

Program to demonstrate use of pointer to pointer


#include<stdio.h>
#include<conio.h>
main()
{
          int a=5,*b,**c;
          clrscr();
          b=&a;
          c=&b;
          printf("address of a= %d\n",a);
          printf("address of a= %d\n",*b);
          printf("adrress of a= %d\n",**c);
          printf("adrress of b= %u\n",b);
          printf("adrress of b= %u\n",c);
          printf("address of c= %u\n",&c);

}

No comments:

Post a Comment

Write a program to draw a circle using mid-point circle drawing algorithm.

#include<iostream.h> #include<graphics.h> #include<conio.h> void drawcircle(int x0, int y0, int r) {         ...