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
How a new operator differs from the operator new?
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
Which one between if-else and switch is more efficient?
How static variables and local variablesare similar and dissimilar?
What is the benefit of learning c++?
Explain the use of this pointer?
Tell me an example where stacks are useful?
What is c++ virtual inheritance?
What is purpose of abstract class?
How can a called function determine the number of arguments that have been passed to it?
What character terminates all character array strings a) b) . c) END
How to implement is-a and has-a class relationships?
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.
What are arrays c++?
why is c++ called oops? Explain