Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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;
   }
Source by www.sanfoundry.com #
 
PREVIOUS NEXT
Tagged: #quiz #arrary #pointers
ADD COMMENT
Topic
Name
2+1 =