C Tutorials

1. #if and #else in C

By: Nirmal : 2023年05月11日

Description: In C, #if and #else are preprocessor directives that allow conditional compilation of code based on whether a given macro is defined or not.

(追記) (追記ここまで)

2. Sum of the elements of an array in C

By: Ignatius : 2012年03月16日

Description: This simple C program computes the sum of all the elements of an array.


3. Printing a simple histogram in C

By: Ignatius : 2012年03月16日

Description: This simple C program prints a simple histogram.

(追記) (追記ここまで)

4. Sorting an integer array in C

By: Ignatius : 2012年03月16日

Description: This simple C program sorts the elements of an integer array and prints them.


5. Find square and square root for a given number in C

By: Jeffrey : 2012年03月16日

Description: This simple C program shows how to find square and square root for a given number.

(追記) (追記ここまで)

6. Simple arithmetic calculations in C

By: Jeffrey : 2012年03月16日

Description: This simple C program shows simple arithmetic calculations.


7. Command-line arguments in C

By: Jeffrey : 2012年03月16日

Description: This simple C program shows the method to accept and display command-line arguments.

(追記) (追記ここまで)

8. Calculator in C

By: Emiley J : 2010年04月16日

Description: This is a simple calculator written in C. To use this calculator, just type the number, followed by the operand and then by another number. The application will then display the result. After the result is displayed, the program goes into the loop which asks if they want to do another calculation. If y is pressed, another calculation can be carried out.


9. Passing double value to a function in C

By: Emiley J : 2010年04月16日

Description: This sample program in C demonstrates the concept of passing a double value to a function as parameter. The program accepts a number in feet and converts the feet into meters by using a conversion function.

(追記) (追記ここまで)

10. Passing pointer to a function in C

By: Emiley J : 2010年04月16日

Description: This sample program in C demonstrates the concept of passing a pointer as a parameter to a function. In this program, the function "prompt" accepts two pointers. The second parameter (num) is a pointer to the variable i. Since it is a pointer, the function does not return the value. The value is stored in i itself.


© 2023 Java-samples.com

Tutorial Archive: Data Science React Native Android AJAX ASP.net C C++ C# Cocoa Cloud Computing EJB Errors Java Certification Interview iPhone Javascript JSF JSP Java Beans J2ME JDBC Linux Mac OS X MySQL Perl PHP Python Ruby SAP VB.net EJB Struts Trends WebServices XML Office 365 Hibernate

Latest Tutorials on: Data Science React Native Android AJAX ASP.net C Cocoa C++ C# EJB Errors Java Certification Interview iPhone Javascript JSF JSP Java Beans J2ME JDBC Linux Mac OS X MySQL Perl PHP Python Ruby SAP VB.net EJB Struts Cloud Computing WebServices XML Office 365 Hibernate

AltStyle によって変換されたページ (->オリジナル) /