Posts

Showing posts from March, 2020
Q. Is there STRUCTURE  in C++,if yes then how it is different from Class, Explain it. Ans-
Q. By how many ways we can call functionin c or c++? Ans- There are three ways to call a function in C or C ++              Call By Value                 * In this if formal arguements are changed then    actual  arguements are not changed. Ex.          #include<iostream.h>        void main()        {            void test (int , int)             int a=5,b=6;             test(a,b);             cout<<a<<b;         }                 void test (int x,int y)        {            x=x+10;            y=y+10;         } ...