You are here:   HomeC Programming (Pratical)
by Dinesh Thakur Category: C Programming (Pratical)

In this program integer type variables declare (vowel,Consonent) and pointer of file (FILE *fp1;). And control statements also used if the given situation is not true than the arguments will be insufficient else it will go on. Nested if statements also come in use the next move is to if file pointer is null then source will not open. While condition tells the (ch!EOF) not equal to End of File. If condition used with the OR (!!) operator. This Will checks out the given characters match the condition. Then it’s Vowel else consonant. And in the last move it will be counted as result.

 
by Dinesh Thakur Category: C Programming (Pratical)

The program implements the Copy string to another string. The inner function “stcpy” takes 2 string pointers as arguments. “copystr” pointer type function declared and pointer type char variable declare. On next move the argument written “I am Dinesh Thakur” in the variable char pointer type and array type string variable. The required function used “cpystr”.

 
by Dinesh Thakur Category: C Programming (Pratical)

 In this program required variable are declared for functioning criteria. Then using loop statement for fulfilling the requirement of repeat the process. Then to use if condition to check whether the number is prime or not. After finding the prime number the next process is to elaborate them using while statement or if condition if number division able by declare value then break the statement else it will increase the value for variable and then if (y==x) then return the value as required.

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program user ask to calculate the words in file. User declare the pointer type file variable for value reference. File open function used to open the file for reading the content in file. If condition checks whether the file is null if it is the else condition comes in where while condition checks the logic (ch!=eof). Through else condition the content check to end of file. And then to print the result on display.

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program user ask to make sum of upper and lower triangle of matrix. In this program user declare the array type Variable after declaring value to the variable if statement will be use to check whether the matrix is square or not. Else it will be going to enter elements for matrix. Loop statement will use to calculate the procedure for elements. For loop and control statements will use the procedure to make it. Then a print method will use to display the sum of upper triangle.

 
by Dinesh Thakur Category: C Programming (Pratical)

 A structure includes many variables into one. Works as a Report card that has name, marks and total. The record would be a structure. The structure then is used to group a set of similar data not forming a new data type.



 
by Dinesh Thakur Category: C Programming (Pratical)

This is C Program to calculate the sum of the elements of each row & column. A matrix is made of rows and columns. The program will add all the rows and the columns of the matrix.

 
by Dinesh Thakur Category: C Programming (Pratical)

 In this program user ask to compute Sine (trigonometric function) Series. The Variable of float or integer type declared that will be use to contain the value. User asks to enter the value and then the computation of PI function described. Here term variable used for temporary value container as in the program this variable contain the x1 and then swapped for Sine. For loop statement also been used for varying the condition. Then using compatible condition the output is displayed.

 
by Dinesh Thakur Category: C Programming (Pratical)

Let us use an array of characters (str) to store the string and variables nletter, ndigit, nspace and nother to count the letters, digits, white spaces and other characters, respectively.

 


About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular Computer Notes 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.



What's New and Popular





Search Content







Advance Courses



Basic Courses



Advertise with Us