Search
 
SCRIPT & CODE EXAMPLE
 

CPP

quiz arrary and pointers in c++

 #include <iostream>
   using namespace std;
   int main()
   {
       int a[2][4] = {3, 6, 9, 12, 15, 18, 21, 24};
       cout << *(a[1] + 2) << *(*(a + 1) + 2) << 2[1[a]];
       return 0;
Comment

quiz arrary and pointers in c++

 #include <iostream>
   using namespace std;
   int main()
   {
       int arr[] = {4, 5, 6, 7};
       int *p = (arr + 1);
       cout << *p;
       return 0;
   }
Comment

quiz arrary and pointers in c++

   #include <iostream>
   using namespace std;
   int main()
   {
       int i;
       const char *arr[] = {"C", "C++", "Java", "VBA"};
       const char *(*ptr)[4] = &arr;
       cout << ++(*ptr)[2];
       return 0;
   }
Comment

quiz arrary and pointers in c++

#include <iostream>
   using namespace std;
   int main()
   {
       int a[2][4] = {3, 6, 9, 12, 15, 18, 21, 24};
       cout << *(a[1] + 2) << *(*(a + 1) + 2) << 2[1[a]];
       return 0;
   }
Comment

quiz arrary and pointers in c++

#include <iostream> 
using namespace std;
   int main()
   {
        int arr[] = {4, 5, 6, 7};
        int *p = (arr + 1);
        cout << *arr + 9;
        return 0;
   }
Comment

PREVIOUS NEXT
Code Example
Cpp :: c++ string to const char* 
Cpp :: __aeabi_assert() 
Cpp :: Tricky Subset Problem 
Cpp :: cpp practice questions 
Cpp :: To toggle (flip the status of) the k-th item of the set 
Cpp :: JAJA 
Cpp :: initialise a vector c++ 
Cpp :: warning in range-based for loop in C++. How to resolve it in vscode? 
Cpp :: esp8266 wifi.localip() to string 
Cpp :: different way to print string in c++ 
Cpp :: convert GLFWwindow* to IntPtr 
Cpp :: convert c to C language 
Cpp :: c++ ignore_line 
Cpp :: c++ program to use nmap 
Cpp :: inbuilt function for bin to dec in c++ 
Cpp :: C++ Features 
Cpp :: cpp console progressbar 
Cpp :: c++ switch integer 
Cpp :: log like printf c++ 
Cpp :: CREDSCORE codechef solution 
Cpp :: C++ Things to Remember 
Cpp :: three-way comparison c++ 
Cpp :: http://dcnet.ddns.ma/Connecter_Tuteur 
Cpp :: c++ get last element in array 
Cpp :: c++ vector remove element by value 
Cpp :: batch to exe 
Cpp :: c++ inline if 
Cpp :: 2927260.eps 2927262.jpg 2927263.ai License free.txt License premium.txt 
C :: install kubernetes kubectl on mac 
C :: read files in c 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =