一些C问题 [英] some C questions
问题描述
Hai all,
我有一些问题。请回答。
1.什么是步行指针?
2.程序和子程序有什么区别?
3。什么是C中的main模板?
4.什么是结构填充(或结构填充)?
5.使用函数指针的优点是什么? br />
-
随着问候
Guru Jois
Hai all,
I have some question. Please answer.
1. What is walking pointer?
2. What is difference between procedure and subroutine?
3. What is template of main in C?
4. What is padding of structure ( or structure padding )?
5. What is advantages of using pointers to functions?.
--
With Regards
Guru Jois
推荐答案
Guru Jois说:
Guru Jois said:
>
Hai all,
I有一些问题。请回答。
1.什么是步行指针?
2.程序和子程序有什么区别?
3。什么是C中的main模板?
4.什么是结构填充(或结构填充)?
5.使用指针函数有什么好处?
>
Hai all,
I have some question. Please answer.
1. What is walking pointer?
2. What is difference between procedure and subroutine?
3. What is template of main in C?
4. What is padding of structure ( or structure padding )?
5. What is advantages of using pointers to functions?.
这是一个讨论新闻组,而非免费的家庭作业服务。
-
Richard Heathfield
Usenet是一个奇怪的地方 - dmr 29/7/1999
http://www.cpax.org.uk
电子邮件:rjh位于上述域名, - www。
This is a discussion newsgroup, not a free homework service.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
" Guru Jois" < gu ******* @ gmail.comschrieb im Newsbeitrag
news:11 ********************** @ k79g2000hse.googlegr oups.com ...
"Guru Jois" <gu*******@gmail.comschrieb im Newsbeitrag
news:11**********************@k79g2000hse.googlegr oups.com...
>
Hai all,
我有一些问题。请回答。
1.什么是行走指针?
2.程序和子程序有什么区别?
>
Hai all,
I have some question. Please answer.
1. What is walking pointer?
2. What is difference between procedure and subroutine?
两者都不是C术语。 C有函数
Neither is a C term. C has functions
3.什么是C中的main模板?
3. What is template of main in C?
模板是一个C ++术语。 OT在这里。如果您改为原型:在ANSI C中
main有2个有效的原型(对于托管环境),int main(void)和
int main(int argc,char *的argv [])。所以它alwasy返回一个int并且取得
根本没有参数或者一个int和一个char **(或者char * [],这是
同样的东西这个上下文)
template is a C++ term. OT here. If you ment prototype instead: in ANSI C
main has 2 valid prototypes (for hosted environments), int main(void) and
int main(int argc, char *argv[]). So it alwasy returns an int and takes
either no argument at all or an int and a char** (or char*[], which is the
same thing in this context)
4.什么是结构填充(或结构填充)?
4. What is padding of structure ( or structure padding )?
实现可能会选择在struct元素之间添加填充字节(或者在结尾?)
结构元素,因此结构可能会结束它的大小要比它的内容大一些。
The implementation might elect to add padding bytes between (or at the end?)
of struct elements, so a struct might end up being bigger in sizes that the
sum of it''s content.
5.使用函数指针有什么好处?
5. What is advantages of using pointers to functions?.
优势是什么?
Advantage against what?
-
问候
Guru Jois
--
With Regards
Guru Jois
再见,Jojo
Bye, Jojo
" Guru Jois" ; < gu ******* @ gmail.comschrieb im Newsbeitrag
news:11 ********************** @ k79g2000hse.googlegr oups.com ...
"Guru Jois" <gu*******@gmail.comschrieb im Newsbeitrag
news:11**********************@k79g2000hse.googlegr oups.com...
>
Hai all,
我有一些问题。请回答。
1.什么是行走指针?
>
Hai all,
I have some question. Please answer.
1. What is walking pointer?
http://www.bronze-gallery.com/sculpt...&sculptorID=38
8-))SCNR
再见,Jojo
http://www.bronze-gallery.com/sculpt...&sculptorID=38
8-)) SCNR
Bye, Jojo
这篇关于一些C问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!