记一次stc单片机c51编程的指针问题
摘要:在对stc8h1k08进行编程时,发现了一个指针值不准确的问题。具体流程是: 1.在主函数中调用 test1函数,创建一个数组 unsigned char arr[3] = {'A','B',0x00},并返回指针 arr; 2.主函数中用 unsigned char * ptr; ptr = te
阅读全文
posted @ 2025-07-20 10:52
posted @ 2025-07-20 10:52
posted @ 2017-09-18 16:24
posted @ 2013-04-04 14:04
posted @ 2012-10-30 13:26
posted @ 2012-08-31 09:49
posted @ 2012-08-31 09:42