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

Program to check whether a word is a sub-string or not of a string typed

1778


What is ios class in c++?

767


How are virtual functions implemented in c++?

787


What is srand c++?

801


A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a saleperson who sells $5000 worth of merchandise in a week receives $200 plus 9 percent of $5000, or a total of $650. You have been supplied with a list of items sold by each salesperson. The values of these items are as follows: Item Value A 239.99 B 129.75 C 99.95 D 350.89 Write a program that inputs one salesperson's items sold in a week (how many of item A? of item B? etc.) and calculates and displays that salesperson's earnings for that week.

3615






What are the benefits of oop in c++?

790


Is c++ an oop?

792


what is multi-threading in C++?

783


What are the basic data types used in c++?

748


What is a far pointer? where we use it?

788


What is encapsulation in c++?

894


What do nonglobal variables default to a) auto b) register c) static

860


How do I write a c++ program?

781


What is stack unwinding?

783


If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?

1230