Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


C Programming Code Examples

C > Beginners Lab Assignments Code Examples

C program to find square root of a number





C++ Programming Copy Strings & Display - To copy string in C++ language, enter a string to "make copy" to another variable say str2 of same type using Function strcpy() and display the copied string on the screen as shown here

Program code to addition of two matrices - Before accepting the Elements Check if no of rows and columns of both matrices is equal. Accept the Elements in Matrix 1 and Matrix 2. Addition of two matrices. Print out the matrix

C++ Describe the Representation of graph - This algorithm represents a given graph using 'Adjacency List'. This method of representing graphs isn't efficient. The time complexity of this algorithm is O(v*e). Print the 'adjacency'

C++ Using Simple Hierarchical Inheritance - In C++ Language, The relationships of objects or classes through "Inheritance" give rise to a hierarchy. In hierarchical inheritance a single class serves as a superclass for more than one

C++ Program to Implement Vector in STL - C++ code to Implement Vector in STL. Insert element into the vector. Delete last element of the vector. "Size of the vector". Display by index. "Dislplay by iterator". Clear the vector

Printing ASCII Values of Characters in C++ - Placing the number in the ch variable of char type to convert the ASCII value in equivalent character to print all the ASCII values of the characters as shown here in the c++ program

C Program code to Illustrate Pass by value - Take two numbers as input and store it in the variables j1 and j2 respectively. Call function swap and pass the variables j1 and j2 as parameters to the function swap. In function

Find First Capital Letter in a String without - Program using iteration, finds the first capital letter that exists in a string. We have included ctype.h in order to make use of int "isupper()" C Function that's Defined inside the "ctype.h"