QP School
Overview of standard C library functions - Printable Version

+- QP School (https://qomplainerzschool.lima-city.de)
+-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3)
+--- Forum: C 18 Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=32)
+--- Thread: Overview of standard C library functions (/showthread.php?tid=5107)



Overview of standard C library functions - Qomplainerz - 07-25-2023

The C standard library provides many built-in functions to perform various operations.

#include <stdio.h>
#include <string.h>

int main() {
    // String manipulation functions
    char str1[] = "Hello";
    char str2[10];
    strcpy(str2, str1); // Copy str1 to str2
    printf("%s\n", str2); // Output: Hello

    // Mathematical functions
    double result = sqrt(25);
    printf("Square root of 25: %.2f\n", result); // Output: 5.00
    return 0;
}