Logo 
Search:

C++ Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C++ ProgrammingRSS Feeds

Identify the error, if any: char str_name ‘a‘;

  Shared By: Jackson Bouchard    Date: Nov 21    Category: C++ Programming    Views: 1156

Answer:

Options

a) str_name is not a valid variable name
b) Variables cannot be initialized at the time of declaration
c) Missing = sign between str_name and ‘a’
d) No error


Answer : c) Missing = sign between str_name and ‘a’

Share: 
 

Didn't find what you were looking for? Find more on Identify the error, if any: char str_name ‘a‘; Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: