what is difference between array of characters and string
Answer Posted / saumil
the compiler automatically puts a null character when we
insert a string...for eg "abc" for the compiler is "abc\0".
but for a array of characters we need to assign a place for
it..for eg a[15] contains 14 characters and a null
character('\0').
| Is This Answer Correct ? | 24 Yes | 7 No |
Post New Answer View All Answers
What is the use of bit field?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
Write a program to swap two numbers without using a temporary variable?
which is an algorithm for sorting in a growing Lexicographic order
Tell us two differences between new () and malloc ()?
How do I copy files?
What does void main return?
what is the basis for selection of arrays or pointers as data structure in a program
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
What is d scanf?
Distinguish between actual and formal arguments.
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
What is pass by reference in functions?
What is function prototype in c language?
What are identifiers c?