(gdb) x/25cb 0x7fffffffde20
0x7fffffffde20: 97 'a' 97 'a' 97 'a' 97 'a' 97 'a' 97 'a' 97 'a' 97 'a'
0x7fffffffde28: 97 'a' 97 'a' 97 'a' 97 'a' 97 'a' 97 'a' 97 'a' 97 'a'
0x7fffffffde30: 97 'a' 97 'a' 97 'a' 97 'a' 97 'a' 97 'a' 97 'a' 97 'a'
0x7fffffffde38: 97 'a'
(gdb)
0x7fffffffde20: 97 'a' 97 'a' 97 'a' 97 'a' 97 'a' 97 'a' 97 'a' 97 'a'
0x7fffffffde28: 97 'a' 97 'a' 97 'a' 97 'a' 97 'a' 97 'a' 97 'a' 97 'a'
0x7fffffffde30: 97 'a' 97 'a' 97 'a' 97 'a' 97 'a' 97 'a' 97 'a' 97 'a'
0x7fffffffde38: 97 'a'
(gdb)
2016-10-26
include <stdio.h>
int main()
{
char str[]="hello";
char *str2="world";
char str3[10];
printf("input the value \n");
scanf("%s",str3);
printf("str is %s\n",str);
printf("str2 is %s\n",str2);
printf("str3 is %s\n",str3);
}
~
int main()
{
char str[]="hello";
char *str2="world";
char str3[10];
printf("input the value \n");
scanf("%s",str3);
printf("str is %s\n",str);
printf("str2 is %s\n",str2);
printf("str3 is %s\n",str3);
}
~
2016-10-04