Address operator(&) in c
#include<stdio.h> //header file stdio.h
#include<conio.h> //header file conio.h
main()
{ //start of the program
int a,b; //variable declaration
clrscr();
printf("the address of a is %u",&a); //print address of a variable using address operator (&)
printf("the address of b is %u",&b); //print address of b variable using address operator (&)
getch();
} //end of the program
#include<stdio.h> //header file stdio.h
#include<conio.h> //header file conio.h
main()
{ //start of the program
int a,b; //variable declaration
clrscr();
printf("the address of a is %u",&a); //print address of a variable using address operator (&)
printf("the address of b is %u",&b); //print address of b variable using address operator (&)
getch();
} //end of the program
No comments:
Post a Comment