#include<stdio.h>
struct book
{
char name[25] ;
char author[25] ;
int callno ;
} ;
int main()
{
struct book b1={ "Let us C", "YPK", 101 } ;
printf("name=%s",b1.name);
printf("\nname=%s",&b1.name);
return 0;
}
can someone explain me why i am getting the same output while i am using two different printf() statement to print the structure member.
printf("name=%s",b1.name);
printf("\nname=%s",&b1.name);
when i run the program i get
[root@centos cpp]# ./a.out
name=Let us C
name=Let us C