Page 1 of 1

What is the output of the following code: : int maino { const int SIZE = 5; int x[] = { 1, 2, 3, 4, 5 }; int *p = x; int

Posted: Fri May 20, 2022 2:51 pm
by answerhappygod
What Is The Output Of The Following Code Int Maino Const Int Size 5 Int X 1 2 3 4 5 Int P X Int 1
What Is The Output Of The Following Code Int Maino Const Int Size 5 Int X 1 2 3 4 5 Int P X Int 1 (75.25 KiB) Viewed 30 times
What Is The Output Of The Following Code Int Maino Const Int Size 5 Int X 1 2 3 4 5 Int P X Int 2
What Is The Output Of The Following Code Int Maino Const Int Size 5 Int X 1 2 3 4 5 Int P X Int 2 (17.32 KiB) Viewed 30 times
What Is The Output Of The Following Code Int Maino Const Int Size 5 Int X 1 2 3 4 5 Int P X Int 3
What Is The Output Of The Following Code Int Maino Const Int Size 5 Int X 1 2 3 4 5 Int P X Int 3 (47.32 KiB) Viewed 30 times
What Is The Output Of The Following Code Int Maino Const Int Size 5 Int X 1 2 3 4 5 Int P X Int 4
What Is The Output Of The Following Code Int Maino Const Int Size 5 Int X 1 2 3 4 5 Int P X Int 4 (68.27 KiB) Viewed 30 times
What is the output of the following code: : int maino { const int SIZE = 5; int x[] = { 1, 2, 3, 4, 5 }; int *p = x; int i; for (i = 0; i < SIZE/2; i++) { int temp *(p + i); * Cp + 1) = *(p + SIZE - 1 - i); *(p + SIZE - 1 - i) = temp; for (i = 0; i < SIZE; i++) cout << x << return 0; }

Assume the file "nums.txt" contains the characters "45 99 22 355", spaces included. What is the output of the following code? fstream f("nums.txt", ios::in); f.seekg(11, ios::beg); int x; f >> X; cout << X << endl;

What is the output of the following program? #include <iostream> #include <fstream> using namespace std; int main() { fstream file; file.open("sample.txt", ios::out); file << "0123456789"; cout<<"Position: « file.tellp() << endl; file.closeO; TH return 0; }

What is the output? #include <iostream> using std::cout; void fun(int *ptr) { *ptr = 30; } int main() { int y = 20; fun(&y); cout << y; return 0; }