difference between string and array?

Answer Posted / gnaneshwar

In the C programming language a string is actually the same as an array of characters. The last character in a C string is a zero byte which indicates the end of the string.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can a string be converted to a number?

519


Explain what is the stack?

636


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1452


Suggesting that there can be 62 seconds in a minute?

599


what is the significance of static storage class specifier?

1665






How do we make a global variable accessible across files? Explain the extern keyword?

1422


Explain how do you convert strings to numbers in c?

597


Is null always defined as 0(zero)?

616


How can you restore a redirected standard stream?

610


Why dont c comments nest?

623


How many levels of pointers can you have?

705


What is non linear data structure in c?

577


What is the difference between c &c++?

647


Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers

1425


What is 1d array in c?

602