C – Page 3 – POFTUT

Category: C

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

0

Commonly Asked C Programming Interview Questions and Answers

What is the difference between declaration and definition of a variable or function? Declaration a variable and function will declare that there is a variable or function in the program but the memory allocation is not done.Generally extern keyword is used Definition a variable or function will allocate required memory area....

1

C – Printf Tutorial with Examples

C and C++ programming language a printf function which is used to print given values or data to the standard output or current terminal. printf supports different formatting types. In this tutorial we will look them in detail. Syntax Syntax of printf is like below.

Print printf function can be used simply just...

0

C – Structures

[rps-include post=6557] C provides primitive data types like int , char , float etc. But in order to solve real world problems we need more than these types. Newer object oriented languages have a lot of features to implement real world situations. For example C++ provides Object Oriented features where we can implement real world...

0

C – File Operations, Open, Write and Close Files

[rps-include post=6557] While learning C programming language one of the most exciting part is writing and reading a file. Because this operations creates something on the operating system we can see which is different from other examples. In this tutorial we will look different aspects of file operations. stdio.h Library...

0

C – Union

[rps-include post=6557] Union is a data type used to store different type of variables. Union is very similar to the struct but have some differences those have explained below. Union can contain int,char,float,… etc. in a single block. One union can contain single set of data at a time. Defining...

0

C Header Files and Include

[rps-include post=6557] C header files used to load builtin or third party libraries. Header files provides information about the library, functions, variables, structures etc. provided library. Include In order to load library header files we use #include preprocessor. #include preprocessor will load related library definitions before source code is expanded and compiled....

Enjoy this blog? Please spread the word :)