This repository contains 100 practice programs that I have implemented in C/C++. As one should always adhere to the basics, these are some basic programs each programmer should know :
- Program to find Fibonacci numbers.
- Check if a number is prime or not.
- Check if number is palindrome or not.
- Find factorial of the number.
- Check if a number is Armstrong number.
- Program to find sum of digits.
- Reverse a number.
- Swap Numbers in C.
- Program without main
- Program for decimal to binary.
- Check if number is positive or negative
- Program to find greatest of 3 numbers.
- Program to get ascii value.
- Program to demonstrate sizeof function.
- Program to check for leap year.
- Program to convert upper case to lower case.
- Program to convert lower case to upper case.
- Program to get string length.
- Program to concatenate 2 strings.
- Program to get largest element in an array.
- Find the GCD.
- Find the LCM.
- Find the number of digits.
- Find the array average.
- Demonstrate the use of strcpy.
- Demostrate the use of strrev
- Find the strong number.
- Program to find the cube of a number.
- Program to generate random number.
- Program to check if strings are anagram.
- Program to toggle case.
- Program to get number of vowels and consonants.
- STL : Vectors
- STL : Insertion and Deletion in vectors.
- STL : cctype library.
- STL : List
- STL : Understanding the use of end() func. under the list.
- STL : Sorting a list.
- STL : Map
- STL : Queues
- STL : Deque
- STL : Bitset.
- STL : Priority Queue
- STL : Sets
- STL : Stack
- STL : *min_element(),*max_element(), sort(), reverse() and accumulate() functions.
- STL : count(), count_if(), find() and find_end() functions.
- STL : binary_search(), upper_bound() and lower_bound() functions.
- STL : distance() function.
- STL : Multimap.
- STL : Multiset.
- STL : make_heap(), push_heap(), pop_heap(), sort_heap() and is_heap() functions.
- STL : adjacent_find() function.
- STL : copy() and copy_n() function.
- STL : copy_if() and copy_backward() function.
- STL : equal and equal_range() func.
- STL : fill() and fill_n()
- STL : find_first_of(), find_if and for_each()
- STL : generate(), generate_n() and includes()
- STL : merge() and inplace_merge().
- STL : iter_swap() and lexicographical_compare()
- STL : mismatch()
- STL : next_permutation() and prev_permutation()
- STL : nth_element()
- STL : partial_sort() and partial_sort_copy()
- STL : partition() and stable_partition()
- STL : shuffle() and random_shuffle()
- STL : remove(), remove_if(), remove_copy() and remove_copy_if()
- STL : replace(), replace_if(), replace_copy() and replace_copy_if()
- STL : rotate() and rotate_copy()
- STL : search() and search_n()
- STL : set_difference(), set_intersection(), set_symmetric_difference() and set_union()
- STL : swap() and swap_ranges()
- STL : unique() and unique_copy().
- Templates : Intro to generic functions
- Templates : Generic function with two generic types.
- Templates : Explicitly overloading a generic function.
- Templates : Overloading a function template.
- Templates : Using Standard parameters with template functions.
- Templates : Generic functions restrictions.
- Templates : Sorting through a generic function.
- Templates : Understanding generic classes using stack.
- Exception Handling : Basics of Exception handling.
- Exception Handling : Example of Unhandled Exception.
- Exception Handling : How an exception can be thrown out of try block?
- Exception Handling : How to handle an exception locally?
- Exception Handling : What if no exception is generated or thrown?
- Exception Handling : Catching Class Types.
- Exception Handling : Multiple Catch blocks.
- Exception Handling : Handling Derived Class Exceptions.
- Exception Handling : Catching all exceptions with a single catch block.
- Exception Handling : Restricting Exceptions.
- Exception Handling : Rethrowing an Exception.
- Exception Handling : Setting a new terminate handler.
- Exception Handling : Applying exception handling.
- File Handling : Writing into a file.
- File Handling : Reading from a file.
- File Handling : Reading from a file using getline().
- File Handling : Reading from a file using seekg().
- File handling : Writing into a file using seekp().