Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

void pointer c++

#include <iostream>

using namespace std;

int main(){
    int n = 5;
    char letter = 'a';
    void* ptr = &n;
    void* ptr2 = &letter;
    cout << *(int*) ptr << endl;
    cout << *(char*) ptr2 << endl;
}

Source by www.atnyla.com #
 
PREVIOUS NEXT
Tagged: #void #pointer
ADD COMMENT
Topic
Name
3+7 =