get nullptr'd lol
This commit is contained in:
27
Assignments/Pointers_CalebFontenot/main.cpp
Normal file
27
Assignments/Pointers_CalebFontenot/main.cpp
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/cppFiles/main.cc to edit this template
|
||||
*/
|
||||
|
||||
/*
|
||||
* File: main.cpp
|
||||
* Author: caleb
|
||||
*
|
||||
* Created on March 4, 2024, 11:07 AM
|
||||
*/
|
||||
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
#include "pointers1.h"
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
int main(int argc, char** argv) {
|
||||
dereferencePointer();
|
||||
if (p == nullptr)
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user