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
What are the types of pointer?
Do the names of parameters have to agree in the prototype, definition, and call to the function?
Explain the difference between abstract class and interface in c++?
Explain the register storage classes in c++.
Why c++ is the best language?
What is an adaptor class or wrapper class in c++?
What are proxy objects in c++?
What is switch case in c++ syntax?
Can a new be used in place of old mallocq? If yes, why?
Why c++ is called oop?
Why should we use null or zero in a program?
Does c++ have arraylist?
Which is the best c++ compiler?
Explain bubble sorting.
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