Podcast
Questions and Answers
How can a string be initialized at compile time?
How can a string be initialized at compile time?
- char s={‘M', 'a', 'n', 'g' ,’a’,’l’,’o’,’r’,’e’}; 2. char s="Mangalore";
What is the output of the program with the given example program?
What is the output of the program with the given example program?
string is srinivasun
How can a line of text be read in C?
How can a line of text be read in C?
By using the gets() function to read a line of string.
Why is the code 'name' used instead of '&name' with scanf()?
Why is the code 'name' used instead of '&name' with scanf()?
What is the maximum number of characters that can be taken as input using fgets() in the given example?
What is the maximum number of characters that can be taken as input using fgets() in the given example?
What is a string in C programming?
What is a string in C programming?
How is a string terminated in C programming?
How is a string terminated in C programming?
What is the pictorial representation of the string 'c strings'?
What is the pictorial representation of the string 'c strings'?
How are strings treated in C programming?
How are strings treated in C programming?
What is the data type used to store an array of characters in C programming?
What is the data type used to store an array of characters in C programming?