1331com银河游戏

ƽ̨ûĻоѡصģ1cָʲô˼ 2Cָ*p++ *(p++)(*p)++ 3cУpΪָ룬ôp&pһʲô 4Cָ룬int a=1; int *p; p=&a*p=&aʲôpֵǷͬ 5CСָ롱ָ͡ʲô 6Ϊʲôcָôѣ 7cָ 8CָʲôʱҪ*ʲôʱ򲻴*? 9Cָ**pʲô˼ 10cָӲ*ʲô
ƽ̨û 2018-06-06 16:40:31

Ǿѡƽ̨ûʱ

Ű
Ű


Ű裺cָʲô˼

׻һ㡣ллˣ
Ľѱ51˵
ָʵһα,ݲͬ,洢ĵַ,˵
int a;
int *p = &a;
,aͨα,pָ,洢aĵַ,
Ļ,ͿԺ׵ҵaڵλ,Ӷõaֵ
һα༭ʱ Ƽ2017-10-03 13:54:53
nikaϰϰ
nikaϰϰ


nikaϰϰCָ*p++ *(p++)(*p)++

int a=2,*p=&a,*q=&a; printf("%d %d\n",*p++,*(q++)); p=&a;q=&a; printf("%d %d\n",*p,(*q)++); ڽѧƵ濴 ˵ 2 2 3 2 ôô ոѧָ Ǻ 鷳˵һ¼ ô ... int a=2,*p=&a,*q=&a;
printf("%d %d\n",*p++,*(q++));
p=&a;q=&a;
printf("%d %d\n",*p,(*q)++);

ڽѧƵ濴
˵
2 2
3 2
ôô
ոѧָ
Ǻ
鷳˵һ¼
ô
ߵл~
Ľѱ6344˵
1. printfбʽļҽϵģ㣻Ǵ
2. һprintfȡqǵԪֵʾΪ2ٶq++qָԪַһԪ壻ȻٶpָԪ2*ȼڡ++
3. ڶprintf,ǶpqָԪֵв(*q)++aֵ2ٽֵ1Ϊ3ٽpָԪaֵ3
һα༭ʱ Ƽ2017-11-25 11:54:12
99989918
99989918


99989918cУpΪָ룬ôp&pһʲô

Ľѱ9188˵

Լԭͼ,뵽ڴ,Ͷ.ʱcall

׷

ϸƵһcԳôճtc2.0

׷

½һ.cļ,Ȼٶȡ

׷

ճ±Ϊ.c   tc
Է
ðһ䣬´µĹcй

׷

,DZΪ.cȻȡ.
ѧѧC,е.DZ̹

׷

һα༭ʱ Ƽ2017-12-16 08:14:51
mylove2693
mylove2693


mylove2693Cָ룬int a=1; int *p; p=&a*p=&aʲôpֵǷͬ

Ľѱ1497˵
ָ뱾ʾǴ洢ڴַһָָijڴд洢ĵԪȥʵԪҲDZͨ͵ַһһӦȥҵġֱָӴ洢ľǵֱַӿԷʵַӦĵԪ

֪¥˵˵ԼֿܵĶ˵һ£

Դ
#include "stdio.h"
#include "conio.h"

main()
{
int a=1;
int *p=&a;
int *q,*r;
q=&a;
*r=&a;
printf("p=%d,q=%d,r=%d",p,q,r);
getch();
}

int *p=&a ; Ǻܱ׼ģaĵַpָ
int *q;q=&a;ҲǺܱ׼ġһָȻaĵֵַ
int *r; *r=&a; rǸָrָڴǸԪأrûиֵͿʼˡǺصġrǸָ̬롣 *rʾȡrӦǸַеֵrûָһĵԪȥȡֵ
һα༭ʱ Ƽ2017-11-25 01:39:14
ڿ
ڿ


ڿCСָ롱ָ͡ʲô

Ľѱ6990˵
Ƚϸ˵ģ
ϵͳΪÿһڴ浥ԪһֵַC/C++ֵַΪָ롱int i=5;űiڴ浥Ԫı(ַ)&iΪָ롣
ָǴǰֵַıҲԱΪָǴűռڴռ䡰׵ַı(ΪһͨҪռĶֽڿռ)int i=5;һint *p=&i;Ͱiָ&iint *ָpҲ˵pд&i˵ָǴָı
һʵֵע⣬ǾвϺͽ̿鲢û֣Ϊָָļơint *p=&i;Ľǣһint *ָpñiĵַʼϸ˵Ӧһint *ָpŶԡʱҪʵʣܹھֱ
һα༭ʱ Ƽ2017-09-19 11:33:36



Ϊʲôcָôѣ

Ľѱ5715˵
ָȷʵ⡣ָݣ

һָ뱾һֻҪDZռڴַȻûзڴַڡ

ڶָһһݡָľǣݱĵַ

ͨеʾ7-7бȽϺõ֡

磬ָintp1 intp1=&a ͱʾ intp1ϢΪaĵַ
*intp1ʾintp1ַڴ浥Ԫֵʵʾaֵ

ԣ *intp1=&a; һֲ̫дǿ裬ٸһb*intp1=b=&a
b&a˵baĵַbһָ롣*intp1=b˵ intp1ĵַָڴ浥ԪΪbԣintp1Կaָָ롣

ӱȽƣ룬ˡ
һα༭ʱ Ƽ2018-03-08 12:00:53
ޱţX
ޱţX


ޱţXcָ

vc6.0 #include int main() { char *str; str="l love china"; puts(str); return 0; } гɹ int main() { char *str; scanf("%s",str); puts(str); return 0; } ʱ޷ʾ Ծͳ... vc6.0
#include
int main()
{
char *str;
str="l love china";
puts(str);

return 0;
}

гɹ

int main()
{
char *str;
scanf("%s",str);
puts(str);

return 0;
}
ʱ޷ʾ Ծͳ
ҿʱһ ָ
Ľѱ3309˵
¥ûָҪʼһɰ
char *str;
str="l love china";
ָ str ַָģҲָһַ
ֵΪstr="l love china" ָstrֵҲַ "l love china" ׵ַ
ʱputs(str); putsеIJȻҲ׵ַˣputsIJַ飬ʵҲǵַΪ־һԪصĵַַַĵַʱָԶһλáֱ'\0'Ϊֹ

char *str;
scanf("%s",str);
ָûгʼDzԵΡ

ʵCҪַ̬ҲDz˷ѿռ䣬Ǻ鷳ģֱô¾У̫
һα༭ʱ Ƽ2017-09-07 19:04:36
ֻ֪
ֻ֪


ֻ֪ѣCָʲôʱҪ*ʲôʱ򲻴*?

Ľѱ9971˵
ͬѧ 
Ӳ Ҫ
*ʾǸڴֵַ
*ʾǸڴĵַ
int *p,a; pָ a
int *p,*a; pָ aҲָ
int *p=&aȼint *p; p=&a;
һα༭ʱ 2013-02-22
Dΰ



DΰCָ**pʲô˼

Ľѱ3005˵
  int **p ;
ͣ
int *p;pһָint͵ıĵַ pǵַ
*pָ
int **ppָһַpŵ*pĵַ *pָǴint ĵַ.
һα༭ʱ Ƽ2017-09-27 06:31:36
ǰ520
ǰ520


ǰ520cָӲ*ʲô

Ľѱ4837˵
 int a=5; int *p =&a; p5ĵַ  *ppַϵ5
һα༭ʱ Ƽ2018-03-13 23:51:29
网站地图

银河1331官网