by Dinesh Thakur Category: C Programming (Pratical)

In this program user ask to define the left shift operator. Left Shift Operator The left 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 c3 = c1<<2. Display result on the screen.

 
by Dinesh Thakur Category: C Programming (Pratical)

This is c program that ask user to find out the interest of value. Here user declares the variables for containing the value in it. User has all components to find out the interest of value. User asks to enter the number for program execution and use the method of Simple interest. Display the result on the screen as output.

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program integer type variables are created which contained data of five subjects that are given. Then some variables of floating type data type also created for required data containing decimal values from user.



 
by Dinesh Thakur Category: C Programming (Pratical)

This is C program that ask to find out the quadric equation. User need to declare the variables that can contain the value in it. Here user asks to enter the value for each variable declared in the equation. User asks value on run time situation. Core step of this program to define the quadric method for equation execution. As user put on the method the result is on display as output.

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program user ask to calculate the gross salary of employees. To calculate the gross salary all the facts in salary like da,hra,basic salary also included. The addition of all salary element show out the gross salary chart.

 
by Dinesh Thakur Category: C Programming (Pratical)

This program user ask to define the getch() function for receiving user selection about character that press on key board. User declares the variables that use to contain the value. In printing criteria user put a query about “do u want to continue (y/n)”. Here if user press ‘Y’ then the character pressed will be selection word as output else the condition will terminate.

 
by Dinesh Thakur Category: C Programming (Pratical)

The function getchar () read and write (display) single character. The function getchar () reads and returns the next character from standard input stream. The standard input is from keyboard. If the function encounters end-of-file character, it returns EOF. Also, if an error occurs in reading, then also the function returns EOF. The prototype of the function is

 
by Dinesh Thakur Category: C Programming (Pratical)

Program illustrates the application of operator modulus(%) to random numbers generated in order to limit the maximum size of random numbers. This is helpful in sampling problems as well as in playing of dice. In dice play, the maximum value that can be obtained is 6. The code for such a case is illustrated below.

 
by Dinesh Thakur Category: C Programming (Pratical)

This is C program that asks user to find out the square root of a number. for this operation user declare a variable for fetching the output on it user also declare a math.h header file this file contains all the math functions for required operation. Then user asks a number to find out the square root put on the square root function the last move to fetches out the result as output on the screen.

 
by Dinesh Thakur Category: C Programming (Pratical)

This is C program where user asks to calculate the exponential value of Number. Exponential is known to a variables raised to the power of something. For example, 10 to the power of 2 is 100 (10x10). For this process user declare the required variables for this after assign the value to variable. User put out the method to find out exponential value. And fetch out the result as output on display.

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program user ask to calculate the Absolute value of integer Parameter. User declares some required variables for the storing value in it. Here user use math function for calculate the absolute value. In abs function the negative value is been denied. Then user uses the absolute function for displaying the result on the screen.

 
by Dinesh Thakur Category: C Programming (Pratical)

 In this program user ask to find out the Power of numeric value as cubic, trigonometric etc. to print the table of powers user need to declare all the power functions. In first instance user declare math.h header file this file contains all the power () functions. User declares integer type and float type variables for process to print the power tables. User asks to enter the value for printing the power table. After declare the value user put the method to find the powers of value like cubic, quadric etc. user in the end print the value through the printing method.

 

Page 8 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.