Which of the following declaration is illegal? = “Best C programming classes by Sanfoundry”; c) char str = “Best C programming classes by Sanfoundry”; d) char str = “Best C programming classes by Sanfoundry”;

Which of the following declaration is illegal? = “Best C programming classes by Sanfoundry”; c) char str = “Best C programming classes by Sanfoundry”; d) char str = “Best C programming classes by Sanfoundry”; Correct Answer

char str is a declaration in Java, but not in C.

Related Questions

Comment on the output of the following C code.
#include int main(){ char *str = "This" //Line 1 char *ptr = "Program\n"; //Line 2 str = ptr; //Line 3 printf("%s, %s\n", str, ptr); //Line 4}
atol(const char *str) Converts the string pointed to, by the argument str.
When two or more persons agree to do or cause to be done an illegal act, or an act which is not illegal, by illegal means, such an agreement is
Conspiracy has been defined as an agreement between two or more persons to do an illegal act or an act which is not illegal by illegal means, under