WHOT IS CHAR?
Answers were Sorted based on User's Feedback
Answer / himaja
n C language, strings are stored in an array of char type along with the null terminating character "\0" at the end. In other words to create a string in C you create an array of chars and set each element in the array to a char value that makes up the string. When sizing the string array you need to add plus one to the actual size of the string to make space for the null terminating character, "\0"
Syntax to declare a string in C:
Sample Code
char fname[4];
| Is This Answer Correct ? | 4 Yes | 2 No |
how to swap 4 number without using temporary number?
How to add two numbers without using arithmetic operators?
18 Answers College School Exams Tests, e track, Infosys, Pan Parag, Sapient, TCS,
Write a code on reverse string and its complexity.
Explain command-line arguments in C.
Why static is used in c?
What is structure packing ?
Why header files are used?
write a program to reverse the words in the sentence.NOTE:not reverse the entire string but just the occurance of each word
WRITE A C PROGRAM TO FIND SECOND BIGGEST VALUE FROM THE GIVEN VALUES
Why string is used in c?
Not all reserved words are written in lowercase. TRUE or FALSE?
i want the code for printing the output as follows 4 4 3 3 2 2 1 1 0 1 1 2 2 3 3 4 4