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

Answer Posted / rajesh kumar

char *p="string" has RO permission while its counterpart char a[]="string" has RW permission.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of pointer?

761


Do the names of parameters have to agree in the prototype, definition, and call to the function?

795


Explain the difference between abstract class and interface in c++?

725


Explain the register storage classes in c++.

869


Why c++ is the best language?

777






What is an adaptor class or wrapper class in c++?

785


What are proxy objects in c++?

846


What is switch case in c++ syntax?

810


Can a new be used in place of old mallocq? If yes, why?

828


Why c++ is called oop?

827


Why should we use null or zero in a program?

768


Does c++ have arraylist?

728


Which is the best c++ compiler?

761


Explain bubble sorting.

799


Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300

1984