TCS Company Programming Variables

All keywords in C are in
1. Uppercase letters
2. None of these
3. Lowercase letters
4. Camel Case letters

Read Solution (Total 6)

TCS Other Question

Which of the following special symbol allowed in a variable name?
1. (underscore)
2. - (hyphen)
3. | (pipeline)
4. * (asterisk)
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