by Dinesh Thakur Category: C Programming (Pratical)

String copy is one of the basic operations in manipulating strings. In this operation, all the characters in the source string, including the null terminator, are copied to the target string making it an exact replica of the source string.

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program user ask to print out the char of a file along with their positions. As user declare the variables for containing the value in it. Here user pointer type variable declaring then ask to enter the file name. if condition will checks out the has file exist or not if the file not exist the message will be file cant open if it exist the while condition will checks out all the character to EOF. With the method of display all the characters will be counted as output.

 
by Dinesh Thakur Category: C Programming (Pratical)

The function call pow(a, b) is used to evaluate ab, The pow function gives a domain error if the value of a is zero and b is less than or equal to zero or if a is negative and b is not an integer.

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program user ask to reverse the Entered number. User declares the required variables for storing the value. User asks to enter the number. User declares the loop statement for reversing the number. Here user also declares the swapping method for this convention like b=a%10, c=a/10, a=c. printing out the condition on display as result on the mark.

 
by Dinesh Thakur Category: C Programming (Pratical)

The function getchar () read and write (display) single character. The function getchar () reads and returns the next character from standard input stream. The standard input is from keyboard. If the function encounters end-of-file character, it returns EOF. Also, if an error occurs in reading, then also the function returns EOF. The prototype of the function is

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program user ask to calculate the Absolute value of integer Parameter. User declares some required variables for the storing value in it. Here user use math function for calculate the absolute value. In abs function the negative value is been denied. Then user uses the absolute function for displaying the result on the screen.

 
by Dinesh Thakur Category: C Programming (Pratical)

Program illustrates the application of operator modulus(%) to random numbers generated in order to limit the maximum size of random numbers. This is helpful in sampling problems as well as in playing of dice. In dice play, the maximum value that can be obtained is 6. The code for such a case is illustrated below.

 
by Dinesh Thakur Category: C Programming (Pratical)

This program user ask to define the getch() function for receiving user selection about character that press on key board. User declares the variables that use to contain the value. In printing criteria user put a query about “do u want to continue (y/n)”. Here if user press ‘Y’ then the character pressed will be selection word as output else the condition will terminate.

 
by Dinesh Thakur Category: C Programming (Pratical)

This is C program that ask to find out the quadric equation. User need to declare the variables that can contain the value in it. Here user asks to enter the value for each variable declared in the equation. User asks value on run time situation. Core step of this program to define the quadric method for equation execution. As user put on the method the result is on display as output.

 
by Dinesh Thakur Category: C Programming (Pratical)

An alphanumeric character is one that is either an uppercase or lowercase letter or a digit. The statement given below tests whether character ch is an alphanumeric character or not.

 

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