forint

  1. redhat

    Scope of a variable in C++

    I am new to programming in C++, although I have done Java Recently, while writing a C++ program, I used two loops as follows: for(int i=0, i<=n; i=i+1) { //statements } for(int i=0; i<=m; i=i+1) { /statements } // where n and m are predefined variables I am using the Turbo C V3...
Top Bottom