by Dinesh Thakur Category: C Programming (Pratical)

Computer instructions have the provision of directly adding or subtracting unity to a variable. So, if we use this facility, the operation is quicker than the operation for the statement A = A+ 1; . Therefore, for increasing and decreasing the values of integral objects by unity, it is better to make use of increment operator (++) and decrement operator (- -) , respectively. Another provision with these operators is that the operators may be placed before or after the identifier of the variable. When the operators + + and -- are placed before the variable name, these are called pre-increment and pre-decrement operators, respectively. For instance,

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program user ask to define the left shift operator. Left Shift Operator The right operands value is moved left by the number of bits specified by the right operand. User declares required variables for storing the value. User put a condition to shift the bits from Right to left. Display result on the screen.

 
by Dinesh Thakur Category: C Programming (Pratical)

This is C program that asks user to return the character in Lower Case. User just declares a character and put char method to evaluate the condition. Display result on the screen as output.

 
by Dinesh Thakur Category: C Programming (Pratical)

This is C program that asks user to return the character in Upper Case. User just declares a character and put char method to evaluate the condition. Display result on the screen as output.

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program user ask to define the ternary operator. User declares some required variables that contain values in it. Ternary operator denote by ?: this can be used as a shortcut for an if-else statement. Here user declare a condition to evaluate the method user ask to enter the value. b= (a>5?1:0); and display result on the screen as output.

 
by Dinesh Thakur Category: C Programming (Pratical)

String copy is one of the basic operations in manipulating strings. In this operation, all the characters in the source string, including the null terminator, are copied to the target string making it an exact replica of the source string.

 
by Dinesh Thakur Category: C Programming (Pratical)

This is c program that user has to show how to enter the content through string copy function. User declare array type variable so that use to contain the data in it. Here user declares the strcpy function to initialize the name as content. In the last user display the print method to show the output in result.

 
by Dinesh Thakur Category: C Programming (Pratical)

This is C program here user will find out the length of line (string) for this user declare the variables that contain value for it and string functions for string execution. Declaring a variable with array parameter user ask to enter the line as required in quoted area. After that user put the method about string functions along with it display the result as output as result.

 
by Dinesh Thakur Category: C Programming (Pratical)

This is C program that asks user to find the area of a triangle using math’s function. Here user declares some variables that use to store the value of it. User asks to enter the value of triangle three sides of triangle. Here after value user using the method to find the area of triangle. And then print the result on the screen.

 

Page 9 of 9



About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.