Skip to content

Instantly share code, notes, and snippets.

View VenkataPavan2494's full-sized avatar

Venkata Pavan VenkataPavan2494

View GitHub Profile
@VenkataPavan2494
VenkataPavan2494 / cpp_helloworld_gist.cpp
Created April 13, 2018 06:41
Simple helloworld program on Gist
#include <iostream>
int main(int argc, char ** argc) {
std::cout << "Hello World!!" << std::endl;
}
@VenkataPavan2494
VenkataPavan2494 / references_from_pointers.cpp
Created April 15, 2018 08:36
References from pointers
#include <iostream>
using namespace std;
int main(int argc, char ** argv) {
int myInteger {10};
cout << "myInteger = " << myInteger << endl;
@VenkataPavan2494
VenkataPavan2494 / simple_function_templates.cpp
Created April 21, 2018 10:46
simple_function_templates.cpp
// CPP program to demonstrate simple function template.
#include <iostream>
using namespace std;
template <typename T>
T my_max(T a, T b) {
return ((a > b)?a:b);
}