
The output of the following program is given in the right side:
The source code of the program is:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio.h> | |
#include<string.h> | |
int main() | |
{ | |
char name[]="AMERICA"; | |
int i; | |
for(i=0;name[i]!='\0';i++) | |
{ | |
printf("character=%c\n",name[i]); | |
printf("address=%u\n",&name[i]); | |
} | |
getch(); | |
} |
0 comments :
Post a Comment