Category: C

0

How To Use Linux ldd Command To Print Shared Libraries with Examples?

Shared libraries are used to provide functions to the commands and executable of the Linux. ldd command can be used to list currently used shared libraries of given executable file. Help Even ldd command is a simple command which provide some parameters this can be listed with the –help option...

While Loop In Java, Javascript, C++, C#, Python Programming Languages 0

While Loop In Java, Javascript, C++, C#, Python Programming Languages

Programming languages like Javascript, C++, C#, Python provides while loops in order to iterate over the given list, array, set etc. while loop is a very important part of the programming language because of its functionality. In this tutorial, we will examine and compare while loop for programming languages like...

0

How To Read Input with fscanf() function In C Programming Language?

C programming language libraries provides some standard functions which can be used in different platforms like Linux and Windows. In this tutorial we will learn how to use fscan()function, return values and parameters with examples. Declaration and Parameters fscanf() function will accepts a file stream in FILE type and format specifiers as...

0

C Programming Gets() Function Tutorial with Examples

C and C++ programming language provide the functiongets() in order to read input from standard input which is generally a terminal. gets is the short form of the get string where string shortens as s . In this tutorial, we will learn functiongets() usage with different examples and compare with functionscanf(). Declaration The...

0

What Is Segmentation Faults and Causes?

Segmentation faults are common run-time error for C programs. When we run the program we will get segmentation violation or segm4 entation fault or similar errors and the program exits. Segmentation faults generally observed inside weak or untested applications. Common Causes Of Segmentation Faults There may be a lot of different causes...

1

What Is sleep() function and How To Use It In C Program?

C programming language provides slepp() function in order to wait current thread for specified time. slepp() function will sleep given thread specified time for the current executable. Of course the CPU and other processes will run without problem. Include unistd.h Library In Linux sleep() function is provided by unistd.h library which is short cut...

0

How To Use GCC Compiler Options Like Optimization, Flags?

gcc is very popular compiler in Linux world. gcc provides interpreter and compiler for programming languages like C, C++, Java etc. In this tutorial we will examine popular compiler options like error, pre-processor, output, optimization etc. Example C Application Code During this tutorial we will use following simple example code. As we...

0

Cmake Tutorial To Build and Compile In Linux

Binaries are created by building or compiling source like C, C++ etc. In simple applications we can build by using the compiler like gcc directly. But this is inconvenient if the application is big and have a lot of source code, configuration file and build options. Developers generally prefers build...

1

C Programming Tutorial Index

C Programming Tutorial Index Introduction To Programming C Setup Development Environment C Hello World and Compile First Application C Syntax and Basics C Variables C Numeric Variable Types (Integer, Long, Float) C String Variables C Constants and Define Processor C Operators C If Else and Switch Case Conditionals C While...

Enjoy this blog? Please spread the word :)