difference between string and array?

Answer Posted / paramesh

a string is collection of characters but an array is
collection of similar data types

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how do you determine the length of a string value that was stored in a variable?

914


Why static variable is used in c?

765


What is structure pointer in c?

783


What is p in text message?

742


I came across some code that puts a (void) cast before each call to printf. Why?

963


Explain the use of keyword 'register' with respect to variables.

810


#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }

909


What happens if header file is included twice?

893


Using which language Test cases are added in .ptu file of RTRT unit testing???

3999


Difference between goto, long jmp() and setjmp()?

948


What is string function c?

788


What is a stream?

879


Explain what is the difference between the expression '++a' and 'a++'?

881


How do you print an address?

984


Why void main is used in c?

784