What should the program below print?
#include
#include
#include
void myfunc(char** param){
++param;
}
int main(){
char* string = (char*)malloc(64);
strcpy(string, "hello_World");
myfunc(&string);
myfunc(&string);
printf("%sn", string);
// ignore memory leak for sake of quiz
return 0;
}
1. hello_World
2. ello_World
3. lo_World
4. llo_World; What should the program below print?; #include; #include; #include; void myfunc(char** param){; ++param;; }; int main(){; char* string = (char*)malloc(64);; strcpy(string, "hello_World");; myfunc(&string);; myfunc(&string);; printf("%sn", string);; // ignore memory leak for sake of quiz; return 0;; }; 1. hello_World; 2. ello_World; 3. lo_World; 4. llo_World
Answers
Answered by
0
I think it's c++ or it is blue j....
..I don't know.....plz tell me the right answer plzzzz
Similar questions