Asp.Net Programming
Asp.Net > Code Snippets Code Examples
Function strncpy Copies First n Characters -
If 'Length of str2' > n then it just copies first n characters of str2 into str1. If Length of str2 < n then it 'copies' all the characters of str2 into str1 & appends several 'terminator' chars('\0')
C Language Check Triangle is Valid or Not -
C Program code to input side of a Triangle & check whether triangle is valid or not using if else. A triangle is valid if sum of its two sides is greater than the third side. Means if a, b, c
Perform Input Output all Basic Data Types -
C language program demonstrate input and output of all basic and derived types. How to use scanf() & printf() function perform input and output on primitive types in C language.
Egg Game graphic programming code in C -
Go back to normal graphics mode or deleting viewport. Checking the egg position. Display mouse pointer. Define the upper left boundry of mouse. Define the bottom right boundry
C Convert Octal to Hexadecimal Number -
C program to input octal number from user and convert to hexadecimal number system. Octal Number System is a base 8 number system. It uses 8 symbols to represent all its
C Programming Codes Displaying a Table -
C Language code how to display a table in C programming language is more or less similar to that of counting. We use only one iteration and increment it with value of which table is
Increase 1 to all of the given Integer Digit -
Initialize variable sum to zero. Take a number as input and store it in the variable number. Obtain the remainder and quotient of the variable number. Store the remainder in the
C++ Language Accessing Array Elements -
"Array index" starts with 0, which means the first array element is at index 0, second is at index 1 and so on. We use this information to display the array elements. See the C++ code