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
Do you have any idea how to compare array with pointer in c?
Write a code on reverse string and its complexity.
Write a program to implement queue.
What are preprocessor directives in c?
What does c value mean?
Is anything faster than c?
Why double pointer is used in c?
What are the key features in c programming language?
an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational
What is maximum size of array in c?
What is selection sort in c?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
Hi can anyone tell what is a start up code?
What is the basic structure of c?
Describe the header file and its usage in c programming?