Category: syntax

Showing ASCII number of alphabet letter in C

Showing ASCII number of alphabet letter in C

To create string in C, we commony we use char. For example : 1char alphabet = "a" At this point, char in C basically represents a byte. So yes, “a” equal with one byte. Just remember, everything you see char in C it’s mean byte. Another things we should know is string structure in C …

+ Read More

Learning how to print Fibonacci number in C

Learning how to print Fibonacci number in C

Fibonacci number in mathematical terms can be used for learning any programming languange. Now, we will learn how to print Fibonacci number in console using C. First thingsp, create a file called “fibonacci.c” :

How to print hello world in C on Ubuntu Linux

How to print hello world in C on Ubuntu Linux

The first things to do learning C programming language is create a “Hello World!”. I commonly use Ubuntu / LINUX for building application. So, at tthis blog, I will write all C applicationsĀ  in Ubuntu. Let’s start by creating a file called “helloworld.c” :