by Dinesh Thakur Category: C Programming (Pratical)

In this program, a structure (student) is created which contains name,subject and marks as its data member. Then, an array of structure of 10 elements is created. Then, data (name, sub and marks) for 10 elements is asked to user and stored in array of structure. Finally, the data entered by user is displayed.

 
by Dinesh Thakur Category: C Programming (Pratical)

In this example, the if-else-if ladder takes decision based on the value of percentage of marks (percentage) calculated and displays the appropriate division. Here, the value of the percentage calculated for inputted data 80 50 75 evaluates to be 68.33. On the basis of this value, the first condition in if-else-if ladder (percentage>=60 & percentage<100) which evaluates to be true so it displays the message First Division and skip the remaining conditions.

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program integer type variables are created which contained data of five subjects that are given. Then some variables of floating type data type also created for required data containing decimal values from user.



 
by Dinesh Thakur Category: C Programming (Pratical)

In this program, an array type variables with elements (10) created for which contain the data as required for them. These created variables are character (char) type data type. These variables will use to contain the string data that is been used for the checking condition as required for string functions. And in the End the data entered will be displayed on the screen.



 
by Dinesh Thakur Category: C Programming (Pratical)

In this program, two variables of array type element declared. Which contains the value of declared variables and Loop statement will also use to be execute the situation. The loop statement will elaborate its functioning until the condition get false. The other function is to be comparing if (m! = n) that will end the functioning of add the Matrix given components must be define all the conditions true. And the result as output also displayed on the screen as well.

 
by Dinesh Thakur Category: C Programming (Pratical)

In this Program pointer concept is been used with the use of variables of pointer type char and integer type which contain the values. Reorder () also used for sorting the the string as required. In the program string is to be entered after that loop statement works. During loop statement the pointer type variable acquires the memory using malloc() function.

 
by Dinesh Thakur Category: C Programming (Pratical)

In this program user checks the logic about numeric value that will it be Division able with 5 or not. To check this declares a variable of integer type. And a logic will be used along with the Modulus operator(%).that will be manipulate with the numeric value and control statement (if-else) used if the numeric value is dividable than output will be ok else it will be reverse. 

 
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)

In this program user asks to find the sum, division, multiply of two numbers with use of function in other words Polymorphism. The function calling procedure will use in this program to find the sum of two numbers. First user asks the numbers which are use to add, divide or multi. Then it declares a function sum, multi, divide (a,b). The next move it call the function sum with formal arguments int x, int y in this procedure the value call from the upper class but add in other class. And in the last the result print on the screen.

 
by Dinesh Thakur Category: C Programming (Pratical)

Let us denote the i th term in the Fibonacci series as Fi , where. i is assumed to take values starting form 0. Thus, the first four terms in the Fibonacci series are denoted as F0, F1, F2. and F3. The first two terms are given as F0=O and F1 = 1.

 

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