what is difference between array of characters and string
Answer Posted / afaquie ahmed siddiqui
in case character array,each character is located at
contiguous memory location,we can not print them just by the
name.we have to apply some loop opration.
BUT in case of string,a BLOCK of memory is assign to whole
string,we can print them just by string name with %s.
like...
printf("%s",name of string);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
write a program to generate address labels using structures?
please explain every phase in the "SDLC" in the dotnet.
Why does everyone say not to use gets?
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
What does static variable mean in c?
How is a structure member accessed?
Describe the order of precedence with regards to operators in C.
In C language, a variable name cannot contain?
How do I use void main?
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
write a program to copy the string using switch case?
The __________ attribute is used to announce variables based on definitions of columns in a table?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
What does the file stdio.h contain?
What is hashing in c?