Q. What int value means in exit(int) function?
A: Return a value to OS, let OS know the exit state of your process.
Only lowest 8 bits are used. Usually return 0 means no error. Otherwise, errorcode. 
Q. Is *(p++) the same as (*p)++?
A: No, absolutely not.
  • *(p++) is getting the value pointed by the pointer first, then move the pointer by 1.
  • *(p)++ is getting the value pointed by the pointer first, then add 1 to the value.

Try the following code, results are commented into the code.

#include<stdio.h>
void main() {
long llist1[3] = {50, 60, 70};
long* p1 = llist1;
p1++;
printf("%d/n", *p1); // 60
long llist2[3] = {50, 60, 70};
long* p2 = llist2;
   
Q. What does define mean in C, is it constant?
A: No, it is called macro, which just replace the same notation with the same text.
It can be used as constant, but be careful, there should be no "=" sign there. See the following example.

#define THREE 3
#define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0]))
long n = (*p2);
n++;
printf("%d/n", n); // 51
} 

some questions相关推荐

  1. R使用LSTM模型构建深度学习文本分类模型(Quora Insincere Questions Classification)

    R使用LSTM模型构建深度学习文本分类模型(Quora Insincere Questions Classification) Long Short Term 网络-- 一般就叫做 LSTM --是一 ...

  2. 35+ Top Apache Tomcat Interview Questions And Answers【转】

    原文地址:https://www.softwaretestinghelp.com/apache-tomcat-interview-questions/ Most frequently asked Ap ...

  3. 机器学习面试题合集Collection of Machine Learning Interview Questions

    The Machine Learning part of the interview is usually the most elaborate one. That's the reason we h ...

  4. Reading Club Questions Feedback

    Reading Club Questions Feedback 文章目录 Reading Club Questions Feedback Paper 1 Title Keywords (Domain) ...

  5. THE QUESTIONS :The Top 25 (what we don't know?)

    Essays by our news staff on 25 big questions facing science over the next quarter-century. > What ...

  6. 转:C# Interview Questions

    转自: http://blogs.crsw.com/mark/articles/252.aspx C# Interview Questions This is a list of questions ...

  7. Some Essential JavaScript Questions And Answers(6)

    Some Essential JavaScript Questions And Answers Question11: Write a simple function (less than 160 c ...

  8. Some Essential JavaScript Questions And Answers(5)

    Some Essential JavaScript Questions And Answers Question 9: Discuss possible ways to write a functio ...

  9. Some Essential JavaScript Questions And Answers(4)

    Some Essential JavaScript Questions And Answers Question7: What is NaN? What is its type? How can yo ...

  10. Some Essential JavaScript Questions And Answers(3)

    Some Essential JavaScript Questions And Answers Question5: What is the significance, and what are th ...

最新文章

  1. 好的开始是成功的一半 -- 怎么做好一个项目的启动...
  2. 通过生成器写一个日志调用方法
  3. service 层 拼接的html 代码如何直接返回_代码分层的设计之道
  4. 静态成员 java_JAVA中的静态成员
  5. Confluence 6 workbox 通知包含了什么
  6. MXNet的Model API
  7. u盘怎么重装系统win11教程
  8. mysql 去空格_MySQL基本命令操作
  9. mysql如何查看表的大小_mysql 如何查看表的大小
  10. sharepoint 2010 在线打开office时报错
  11. 习题第一章 构造过程抽象
  12. 苹果怎么用计算机解锁,苹果ios10密码解锁设置图文教程 怎么用密码解锁
  13. 电动汽车(EV)无线充电(WPT)及标准
  14. 项目风险管理之风险分析
  15. 晶振知识,及晶振振荡电路
  16. NTFS文件系统详解
  17. [CGAL]建立一个正四面体
  18. 水下SLAM论文!!!
  19. 用css3风车转动动画代码
  20. nginx启动时指定prefix(覆盖编译时的 --prefix)

热门文章

  1. 苹果收购 NeXT;《绝地求生》发布 | 历史上的今天
  2. i3能装Linux虚拟机,centos7 下安装i3wm
  3. 秋毫ERP论坛成为国家信息产业部和微软官方推荐的Dynamics论坛
  4. vue总结系列--数据驱动和响应式
  5. 基于python的Opencv项目实战(第二章)
  6. 炸裂!一晚没睡,用 AI 画了亿些小姐姐。。
  7. C++并发实战15:函数式编程
  8. 河南省“互联网+ ”开放合作大签约850亿元“互联网+”高峰论坛、河南省县域电商峰会、腾讯“互联网+”中国行河南站活动,以及阿里—中原云大数据应用创意大赛、腾讯河南智慧旅游、河南省互联网创新创业大赛
  9. 卷一 内核源代码分析 第二章 异常 2.2.4 OMAP4的中断体系 图书试读版-请勿转载
  10. 30个写在脸上的密码