by Dinesh Thakur Category: C Programming (Pratical)

This is C program that asks user to define the size of data types acquired by them. Data types are known as those elements that tells the user which kind of data elements they have for example integer type for numeric value, char type for characters. All the data types have their limits for numerical expressions like char is 0-255 bits.



 
by Dinesh Thakur Category: C Programming (Pratical)

In this program user asks to text conversion from Lower case to uppercase. User declares the char type variable. User also uses the loop statement that will execute the concept of conversion. The other function for put char that has to get the character that converted. In the end the display the result on the screen as well.

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program user ask to check that how to pass one dimensional Array to function. For this user declares the variable regarding to function. Like fstore, fretrieve, fedit these variables will be handy in criteria of function. User also define N value=5.User asks to enter data for matrix and return that all data. Here user make function for the every step like fstore, fretrieve, fedit that is been used along with loop statement that will vary the condition according to filled data. The all three functions are used for data passing next move the user prints the message for previous data and the symbol for skip or edit the data. Display result in the end for this one.

 
by Dinesh Thakur Category: C Programming (Pratical)

In This program user ask to find out the number is Armstrong or not. “A number is Armstrong if the sum of cubes of individual digits of a number is equal to the number itself”. User declares required variables for this operation. User uses a temp variable that will use to store the value for temporary time period. Declaring while condition while (num>0) user ask to cub=num%10, num=num/10, sum=sum+ (cub*cub*cub).

 
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)

The program segment given below uses an switch statement to determine the number of days in a given month (mm). The switch statements to handle the following cases: months having 31 days, months having 30 days, February having either 29 or 28 days.

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program user ask to pass array to function. User declare the variables along with functions for process to pass array like void read (), void dis (). Arguments also declared within function to pass value. Array type variable contains the array elements within. User asks to enter the value as regarding. And then user call the function for passing value to array in a function user declares for loop for to print a value. The other function is been also call and loop statement also declare for another printing method. And display on the screen.

 
by Dinesh Thakur Category: C Programming (Pratical)

This program asks user to find out the cos (Cosine) theta value. Cosine is a trigonometric element that uses in the math function. User defines the PI value for functions user also declares the variables for the required condition. User ask to enter the value for the X. then it’s manipulated by PI and trespass the value to cosz=term and further passes to loop statement for printing out the output for cosine value on to the display.

 

Page 8 of 18



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.