Friend Function in C++ Friend Function in C++ AΒ friend classΒ can access private and protected members of other classes in which it is declared as […]
Read moreTag: programming tutorial
String in Python
In Python, a string is a sequence of characters enclosed in quotes. You can use single quotes (‘), double quotes (“), triple single quotes […]
Read moreProgram for diamond shape π
#include <iostream> using namespace std; class A { public: Β Β void show() { Β Β Β Β cout << “Diamond pattern: “; Β […]
Read moreTernary Operator
Ternary Operator Ternary Operator Syntax: Condition ? Expression 1(True)Β :Β Expression 2(False) ; Program: To check wheather the given number is even or odd […]
Read moreDefine a Function array() which takes input in array and a function sum() which calculate the sum of the same array. Call the function in main() in a loop of five times – Simple loop and array question , matrix question , 2d array question
Define a Function array() which takes input in array and a function sum() which calculate the sum of the same array. Call the function in […]
Read moreInput two matrix in 3-D array and multiply and store in another array – Simple loop and array question , matrix question , 2d array question
Input two matrix in 3-D array and multiply and store in another array – Simple loop and array question , matrix question , 2d array […]
Read moreInput a matrix in 3-D array and calculate the sum of its diagonal – Simple loop and array question , matrix question , 2d array question
Input a matrix in 3-D array and calculate the sum of its diagonal – Simple loop and array question , matrix question , 2d array […]
Read more
Recent Comments