int main()
{
int i ,a[i];
i = 0;
a[i] = 10;
cout<< a[i] << endl;
return 0;
}
What will be output of this program?
Answer Posted / anil hooda
it will return any integer value.....
| Is This Answer Correct ? | 1 Yes | 9 No |
Post New Answer View All Answers
Explain the differences between private, public and protected and give examples.
Explain the isa and hasa class relationships.
Is c# written in c++?
Which one is better- macro or function?
Explain differences between new() and delete()?
How do you define/declare constants in c++?
What is the insertion operator and what does it do?
What are c++ data types?
How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?
Can a function take variable length arguments, if yes, how?
Write bites in Turbo c++ Header ("Include") Files.
What is a catch statement?
State two differences between C and C++.
What is c++ & why it is used?
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