You are here:   HomeC Programming (Pratical)C Program Find Transpose of a Matrix
by Dinesh Thakur Category: C Programming (Pratical)

In this program user will take command to copy the content from one file to other file with the help of file handling concept. As required user declare the variables for function regarding here user must have to create a file with content in it for copying as user set the control statement that if (args!=3) then insufficient arguments message will be on the screen. In next move user made a condition if (fp1==Null) then the existing file can’t be open and the targeted file also been neglected by the control statement. Then awhile condition comes in lime light for vary the condition to copying the file. While (ch!=EOF) until the character not been checked to end of file. Put the content of fp1 to targeted place. And then a message appears file copied on the screen as result.

 
by Dinesh Thakur Category: C Programming (Pratical)

 This is C program that asks user to create the bank system criteria through programming. User will use switch statement to create these operation. From this user can select through their choices. User also declares variables for the storing value. User also declares some functions like void creation (), void deposit (), void withdraw (). These function will used during calling operation.

 
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.

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program user ask to find out the HCF (highest common factor) using function. As declaring required variable user ask to enter the value. User made a function named “HCF”. Then using control statement if(a>b) the HCF (a,b) else (b,a) after fetching the HCF through getch(). 

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program user ask to convey that how to pass 2d array to a function. User define value in first instance for M=3, N=5. User also declare array type variable for storing the value. User input a message that prints a matrix for and then returns a value. Next move two functions are made for passing array like fstore, fretrieve and the loop statement also declares in the function for varying the condition. Nested loop statement is been implemented for the function. And in the last result is been displayed on the screen.

 
by Dinesh Thakur Category: C Programming (Pratical)

This is C program that asks user to find out the highest marks and average of students. Here declaring required variables for storing the value. User declares an array type variable in this user puts the value static up to 10 element. Using clear screen method user also uses the loop statement for vary the condition for average and marks into it. And a control statement also use for getting the condition true. if (mark[i] > highest) then the highest marks will be in mark[i]. 

 
by Dinesh Thakur Category: C Programming (Pratical)

The strchr function finds the first occurrence of a specified character in a string, If the specified character is found, the function returns a pointer to that character; otherwise, it returns a NULL pointer. Initially, the strchr function is used to locate the position of the first ' l ' character in strings and its address is assigned to pointer result.




 
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)

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,

 

Page 7 of 18



Subscribe To Free Daily Newsletter!

Get Free News Updates Delivered Directly To Your Inbox
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