c
RLHaides
孤独,是我们的相伴
展开
-
欢迎使用CSDN-markdown编辑器
这#include<stdio.h> int main(void) { FILE* fp; char ch; /*open a file for writing*/ fp = fopen ( " DUMMY.FIL"," w " ); /*force an error condition by attempting to read*/ ch = fgetc( fp ); printf(" %c \n原创 2016-12-08 23:45:26 · 276 阅读 · 0 评论 -
some basic interview question
(the header is omitted,sorry) 1.about the pointer and the ++ ,–int main() { int x = 4; int *p = &x; int *k = p++; int r = p - k; printf("%d", r); } > explain: C本身无法防止非法的指针减法运算,它无原创 2017-01-03 20:48:31 · 480 阅读 · 0 评论