what is difference between array of characters and string
Answer Posted / shayan
the main difference between array of char and string is that when we declare array of char like char name[6],in this case for example shayan s is stored in 0 index and last character is n which is at 5 index but i delared 6 because 6th index is of null character which is neccesary to declare but in string it will automatically declare by the compiler like "shayan" after n compiler automatically put \0 after n.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
How can I manipulate strings of multibyte characters?
What are void pointers in c?
What is non linear data structure in c?
Are the variables argc and argv are always local to main?
Sir i need notes for structure,functions,pointers in c language can you help me please
How do you use a pointer to a function?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
What is queue in c?
How many keywords are there in c?
What is c value paradox explain?
Explain the array representation of a binary tree in C.