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)

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)

This is c program that ask user to find out the Maximum number from given digits. User declares the required variables that use to contain the value in it. User ask to enter any five values then for loop will come in exist for evaluate the condition then if condition will use to evaluate that which number is minimum and which is maximum. Then display the result on screen as output.

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program the two numbers to be swapped from each other place with the use of third variable. In program the variables declare for storing the value in it. Here three variables are also declared (a,b,c) the use of only two numbers the swapping will happen. The first number shifted to third variable and then to other variable the reverse phase will be on the move to swap both numbers. And other functionality also comes in light for displaying the result on the screen.

 
by Dinesh Thakur Category: C Programming (Pratical)

This program asks user to replace the occurrence of M by N. user declare variables and some method for replacement of occurrences. Like user ask to put file name here if condition will come in use for checking out the file exist or not if not the message will be “file can’t be open” else the while condition will use in for passing to “EOF”. If the condition match if(ch=='M'||ch=='m') then the process will use method to replace the letter with N from M. display result on the screen at last instance.

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program user ask to convert a value to pointer check address of variable. User declares some variables for this to contain the value in it. User declare <math.h> header file for math functions like pi etc. the type of variable is differ like some are double, integer, char type etc. user print out the method for conversing in pointer type to using all the method for conversion display the result 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)

This program is for finding the factorial of N number. Two integer type variables declared with static value one of them. Here to user enter the value for finding the factorial. Then loop statement for stepping forward to find the result and (f*I) and at last to print the output on the display.

 
by Dinesh Thakur Category: C Programming (Pratical)

This is c program that asks user to find out the Area of a circle. User need to declare the math function header file for calculation along with required variables like radius or area. User asks to enter radius of a circle for find out the area. User then uses the method to find out the area of a circle. Then too display result on the screen as result.

 
by Dinesh Thakur Category: C Programming (Pratical)

This is c program that asks user to print the number on screen. User declares some variables that use to contain the value in it. User also uses the switch statement for this execution. User ask to enter the number and in switch statement user declare for loop i=2 and <20 any number been entered the increment operator will increase i+1. Case 2 has the same condition increment operator will increase the number i+2. And default case will show the message “enter valid number“. Display the result on the screen as output.

 
by Dinesh Thakur Category: C Programming (Pratical)

This is C program to check out the content is lower case or uppercase. Core concept is to show the if the content CH is lower case then Non Zero result will be display as result else the result will zero. For this user declare some required variables for containing the values. Then user define if statement along with for loop. The condition which gets the true will display as result on 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 user ask to swap the numbers. User declares the variables for containing the value in it. User define the method with arguments or parameter (*int, int*). Then user assign the value to each variables then print the message to before and after value phase in each variable. Next move to call the function that declares the early in the program. Using swapping method as usual. Display the result on the screen as output.

 
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.

 

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