What is the difference between Char a[ ]=”string” and char
*a=”String”
Answer Posted / niranjan kumar niraj
char a[]="string" returns characters and char *a[]="String"
returns address of character
| Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
What is constructor c++?
What are punctuators in c++?
What is a flag in c++?
Explain the difference between static and dynamic binding of functions?
How to defines the function in c++?
What does return 0 do in c++?
Is it possible for a member function to delete the pointer, named this?
When do we run a shell in the unix system? How will you tell which shell you are running?
Write about the various sections of the executable image?
What is the first name of c++?
What is difference between class and function?
What return value must conversion operators have in their declaration?
Must accepts "Maestro Cards" Tax for bike should be less than 15 Total number of lanes is more than 10 Must provides monthly pass Write a method: boolean isGoodTollBridge(String[] cardsAccepted, String[] tollTax, boolean hasMonthlyPass, int numberOfLanes); String[] cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card String[] tollTax A String array of toll tax chart (say “Train : 300â€Â,â€ÂBullCart : 10â€Â) boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not int numberOfLanes This parameter defines the number of lanes for each side
What is a map in c++?