C
Q. Consider the below statement, can we assign a string to variable like this:
char c[100]; c = "C programming";
No, we cannot assign a string like this. Because string is a character array and array type is not assignable. To assign a string to the character array, we need to use strcpy() function.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. Which of the following are syntactically correct in C language
Q. Size of float, double and long double in Bytes are?
Q. What is the output of C program?
Q. What is the default return type if it is not specified in function definition?
Q. Which of the following is not a valid variable name declaration?
Q. Which of the following library functions returns the time in UTC (Greenwich mean time) format?
Q. Which header file is used for dynamic memory allocation in C
Discusssion
Login to discuss.