What is the difference between Char a[ ]=”string” and char
*a=”String”

Answer Posted / ratish

c/c++ is case sensitive language. so Char is invalid data type. hence char *a="String" is correct answer.

Is This Answer Correct ?    11 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How a new operator differs from the operator new?

910


Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

1010


Which one between if-else and switch is more efficient?

855


How static variables and local variablesare similar and dissimilar?

841


What is the benefit of learning c++?

753


Explain the use of this pointer?

939


Tell me an example where stacks are useful?

816


What is c++ virtual inheritance?

860


What is purpose of abstract class?

840


How can a called function determine the number of arguments that have been passed to it?

924


What character terminates all character array strings a) b) . c) END

1013


How to implement is-a and has-a class relationships?

810


Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.

2001


What are arrays c++?

858


why is c++ called oops? Explain

849