Posts

for loop #include <iostream> using namespace std ; int main () { // for loop execution for ( int a = 10 ; a < 20 ; a = a + 1 ) { cout << "value of a: " << a << endl ; } return 0 ; }

Ambiguity in multiple inheritances

#include<iostream.h> #include<conio.h> Class A { Public: Void show () { Cout<<”\n class A”; } }; Class B { Public: Void show () { Cout<<”\n class B”; } }; Class C: public A, public B { }; Void main (0 { C obj; Obj. Show (); }