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 > Pointers Code Examples

Pointer for char, int, float and double





Code Removes First Occurrence of a Word - C program to 'input any string' from user and remove first occurrence of a given word from string. Logic to remove 'first occurrence' of a word. Input string from user, store it in some

Simple Class Declaration in C++ language - C++ language allows us to separate program-specific datatypes through the use of classes. "C++ Classes" define types of data structures and the functions that operate on those data

Pass Structure as an argument to Function - We have a function 'printStudentInfo()' which takes structure Student as an 'argument' and 'prints the details' of student using structure varaible. The important point to note here is

Codes Convert Binary Number to Decimal - C Programming code take a binary number and store it in the variable j. And initialize the variable decimal_val to zero, variable base to 1. Obtain the remainder and quotient of the...

C Program code check Armstrong Number - A number is called as "Armstrong Number" if Sum of Cubes of Digits of Number is equal to the number itself. In C code, we are checking the input number is Armstrong or not. Check

C Program to Find Reverse of any number - C program code to input a number from user and find reverse of the given number using for loop. Input number to find reverse. Store it in some variable say j. Declare & initialize...

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 Armstrong numbers between an interval - Declare function to print Armstrong numbers in given range. Lets give a meaningful name to function. Say "printArmstrong()" function prints all Armstrong numbers in given range.