Write a corrected statement in c++ so that the statement
will work properly. x =+ 7;

Answers were Sorted based on User's Feedback



Write a corrected statement in c++ so that the statement will work properly. x =+ 7;..

Answer / ravin

x+=7;

Is This Answer Correct ?    5 Yes 1 No

Write a corrected statement in c++ so that the statement will work properly. x =+ 7;..

Answer / rose

x+=7

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More C++ General Interview Questions

Is c++ still in demand?

0 Answers  


Find out the bug in this code,because of that this code will not compile....... #include <iostream> #include <new> #include <cstring> using namespace std; class balance { double cur_bal; char name[80]; public: balance(double n, char *s) { cur_bal = n; strcpy(name, s); } ~balance() { cout << "Destructing "; cout << name << "\n"; } void set(double n, char *s) { cur_bal = n; strcpy(name, s); } void get_bal(double &n, char *s) { n = cur_bal; strcpy(s, name); } }; int main() { balance *p; char s[80]; double n; int i; try { p = new balance [3]; // allocate entire array } catch (bad_alloc xa) { cout << "Allocation Failure\n"; return 1; }

2 Answers   Impetus,


Difference between Top down and bottom up approaches for a given project ?

14 Answers   BSNL, CSC, HCL, HP, IIT, Infosys, Siemens,


Do inline functions improve performance?

0 Answers  


What are different types of typecasting supported by C++

1 Answers   CA,






1.Between 100 and 999 are some numbers that have the characteristics that if you cube the individual digits and sum together you will get the same number. 2. A program that can accept as input an integer and output the equivalent of that number in words.

3 Answers  


What are vectors used for in c++?

0 Answers  


Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list

0 Answers  


What is the prototype of printf function?

0 Answers  


Shall we use 'free' to free memory assigned by new, What are the further consequences??

5 Answers   Symphony,


what are the events occur in intr activated on interrupt vector table

0 Answers   HGS,


How did c++ start?

0 Answers  


Categories