|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
#include <string.h>
#include <stdio.h>
#include <math.h>
int main()
{
char a[20] = "fishc" ;
int b[5] = {1,2,3,4,5};
float c[5] = {1.1,1.2,1.3,1.4,1.5};
double d[5] = {1.1,1.2,1.3,1.4,1.5};
printf("a[0] -> %p","a[1] -> %p","a[2] -> %p \n",&a[0],&a[1],&a[2]);
printf("b[0] -> %p","b[1] -> %p","b[2] -> %p \n",&b[0],&b[1],&b[2]);
printf("c[0] -> %p","c[1] -> %p","c[2] -> %p \n ",&c[0],&c[1],&c[2]);
printf("d[0] -> %p","d[1] -> %p","d[2] -> %p \n",&d[0],&d[1],&d[2]);
}
#include <string.h>
#include <stdio.h>
#include <math.h>
int main()
{
char a[20] = "fishc" ;
int b[5] = {1,2,3,4,5};
float c[5] = {1.1,1.2,1.3,1.4,1.5};
double d[5] = {1.1,1.2,1.3,1.4,1.5};
printf("a[0] -> %p,a[1] -> %p,a[2] -> %p \n",&a[0],&a[1],&a[2]);//引号太多了,下面几行也是一样的错误
printf("b[0] -> %p,b[1] -> %p,b[2] -> %p \n",&b[0],&b[1],&b[2]);
printf("c[0] -> %p,c[1] -> %p,c[2] -> %p \n",&c[0],&c[1],&c[2]);
printf("d[0] -> %p,d[1] -> %p,d[2] -> %p \n",&d[0],&d[1],&d[2]);
}
|
|