by Dinesh Thakur Category: C Programming (Pratical)

This is C program where user asks to trace a matrix with giving the order of matrix and print it. Here user declares variables that are mandatory for storing the value with it. Some variables are array type to holding value multiple. User asks to enter the no. of rows and columns as order of matrix. And then enters a number then after user varies the loop statement for situation handling to print a matrix. Nested loop statements are used in this program to elaborate the condition itself for tracing the matrix. A printing message for the matrix elements. And then display matrix on the screen as a result.

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program user convert the temperature from Fahrenheit to Celsius. User declares required variables for containing the value in it. User declares the value to variables manually to make process of temperature conversion. Then while condition for laying the condition complete. In while condition the method is been used for temperature conversion that are required. Then a printing method to print result on the screen.

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program user ask to check whether the number is even, odd, -ve, +ve. For this user need to use control statement like if-else. User put the condition if (a==0) then number is zero. if (a%2==0 && a>0) number is even and positive. if (a%2==0 && a<0) number is even and negative or if (a%2!=0 && a>0) number is odd and positive these are some conditions to verify the number pahse. And display result on the screen.

 
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)

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,

 
by Dinesh Thakur Category: C Programming (Pratical)

This is C program where user asks to interchange the two values with each other using Call by reference method. Declaring the required variable for functionality. Then after user declare void swap() function that which will give the reference to other class for interchange. After that user call the function that declare void swap() then using method to interchange the value of variables with the help of pointer concept to declare pointer type variables that are useful while using the call by reference method. In the end the result has to be display on the screen.

 
by Dinesh Thakur Category: C Programming (Pratical)

This is C program that ask user to define the Bitwise XOR operator. This operator in C compares each bit of its first operand to the corresponding bit of its second operand. If one bit is 0 and the other bit is 1, the result will bit is set to 1 Otherwise 0.

 
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)

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.

 

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