Skip to content

Instantly share code, notes, and snippets.

@MasazI
Created May 22, 2015 02:45
Show Gist options
  • Select an option

  • Save MasazI/2719aa9787d5e2399214 to your computer and use it in GitHub Desktop.

Select an option

Save MasazI/2719aa9787d5e2399214 to your computer and use it in GitHub Desktop.
nullptr.cpp
//
// nullptr.cpp
// CplusplusPractice
//
// Created by masai on 2015/05/22.
// Copyright (c) 2015年 masai. All rights reserved.
//
#include <iostream>
using namespace std;
void func(void* p){
cout << "void*" << endl;
}
void func(int a){
cout << "int" << endl;
}
void func(nullptr_t p){
cout << "nullptr_t" << endl;
}
int main(){
func(12);
func(nullptr);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment