You are here:   HomeC Programming (Pratical)C Program Print First N Prime Number using Recursion
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 ask to pass array to function. User declare the variables along with functions for process to pass array like void read (), void dis (). Arguments also declared within function to pass value. Array type variable contains the array elements within. User asks to enter the value as regarding. And then user call the function for passing value to array in a function user declares for loop for to print a value. The other function is been also call and loop statement also declare for another printing method. And display on the screen.

 
by Dinesh Thakur Category: C Programming (Pratical)

This is C program that asks user to define the size of data types acquired by them. Data types are known as those elements that tells the user which kind of data elements they have for example integer type for numeric value, char type for characters. All the data types have their limits for numerical expressions like char is 0-255 bits.



 
by Dinesh Thakur Category: C Programming (Pratical)

In this program user ask to define the left shift operator. Left Shift Operator The left operands value is moved left by the number of bits specified by the right operand. User declares required variables for storing the value. User put a condition to shift the bits from right to left c3 = c1<<2. Display result on the screen.

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program user ask to count the line in a file. User declares the required variable for storing the value and some are of pointer type. User put the method for opening file and using if-else condition to vary the condition if content is not found then terminate else with the use of while condition read the content until (ch != EOF). Then varying the condition the counted lines are on the display on the screen. In the end a method in end to close the file.

 
by Dinesh Thakur Category: C Programming (Pratical)

The program segment given below uses an switch statement to determine the number of days in a given month (mm). The switch statements to handle the following cases: months having 31 days, months having 30 days, February having either 29 or 28 days.




 
by Dinesh Thakur Category: C Programming (Pratical)

This program asks user to find out the cos (Cosine) theta value. Cosine is a trigonometric element that uses in the math function. User defines the PI value for functions user also declares the variables for the required condition. User ask to enter the value for the X. then it’s manipulated by PI and trespass the value to cosz=term and further passes to loop statement for printing out the output for cosine value on to the display.

 
by Dinesh Thakur Category: C Programming (Pratical)

This program asks user to check whether the given char code is ASCII or not. ASCII code means the character code that brings in a numeric form for every character so that computer can read the content because computer only understands the machine language or binary system. ASCII stands for (American standard code for information interchange). There are different type of ASCII code like for Capital characters ASCII code numeric value starts from 65 (A=65) or small characters like a starts from 97 (a=97).



 

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