Predict the output of the below program in C/C++

Predict the output of the below program in C/C++ #include <iostream> using namespace std; int main() {          int array[] {2, 9, 8, 4, 6, 1, 7, 5, 3, 0};     for(int i = 0; i < 10; i++)     {         array[i/2] = array[array[array[i/3]/3]/3];     }          for(int i = 0; i < 10; i++)      cout << array[i] << ” “;          return 0; }  Select Any One Answer A -2 2…

Read More

Best and Easy way explain Pointers in C Programming with examples

Best and Easy way explain Pointers in C Programming with examples   A pointer is a variable that stores the address of another variable. Unlike other variables that hold values of a certain type, pointer holds the address of a variable. For example, an integer variable holds (or you can say stores) an integer value, however an integer pointer holds the address of a integer variable. Best Example #include <stdio.h> int main() { /* Pointer of integer type, this can hold the * address of a integer type variable. */…

Read More