Movatterモバイル変換


[0]ホーム

URL:


C Library Functions

C Programming Tutorials

Overview of C LanguageC Language FundamentalsData Input and OutputDecision Control StatementsLoop Control StatementsFunctionsPreprocessors and Header FilesArrays and StringsPointersStructure and UnionFile Handling

C library functions are provided by the system and stored in the library. In C programming, C library functions are also called inbuilt functions.

To use Inbuilt Function in C, you must include their respective header files containing prototypes and data definitions.

C Program to Demonstrate the Use of Library Functions

Example:

#include<stdio.h>#include<ctype.h>#include<math.h>void main(){    int i = -10, e = 2, d = 10; //Variables Defining and Assign values    float rad = 1.43;    double d1 = 3.0, d2 = 4.0;    printf("%d\n", abs(i));    printf("%f\n", sin(rad));    printf("%f\n", cos(rad));    printf("%f\n", exp(e));    printf("%d\n", log(d));    printf("%f\n", pow(d1, d2));    }

Program Output:

c-library-functions



Found This Page Useful? Share It!
Get the Latest Tutorials and Updates
Join us on Telegram

Related Content

C Program to Shutdown System (Windows and Linux)C Program to Illustrate Use of exit() Function

[8]ページ先頭

©2009-2025 Movatter.jp