摘要:
1、what will happen after running this program? 1 #include <iostream> 2 using namespace std; 3 4 void getMemory(char *p, int num){ 5 p = (char*)malloc(sizeof(char)*num); 6 } 7 8 int main(void){ 9 char* str = NULL; 10 getMemory(str,100);11 strcpy(str,"hello");12 cout<<str<<
阅读全文