Maateen

Author - Pythonista - Storyteller

Viewing posts for the category C Programming

How to reverse a number or string in C Programming

3 years, 4 months ago C Programming

We, the C programmers, sometimes face a problem that we are to reverse a number or a string. On many online judges there are some problems like number reversion. On these cases, what will we do? We may consider the following code to reverse a number:

Continue Reading

strrev function in C Programming

3 years, 4 months ago C Programming

strrev function is defined in string.h header file. It reverses a given string. Its basic form is given below:

Continue Reading

strcpy function in C Programming

3 years, 4 months ago C Programming

Today we will talk about a string assignment operator. But before that, we will solve a problem. The problem is very easy. We have to copy/assign one string to another.

Continue Reading

strlen function in C Programming

3 years, 4 months ago C Programming

strlen function is a very simple string library function defined in string.h header file. It returns the length of a given byte string. Here length means how many characters are containing in that string. But it’s noted that the null character will always be excluded from the length. Its basic form is given below:

Continue Reading

strncmp function in C Programming

3 years, 4 months ago C Programming

To understand this topic clearly, you should understand the strcmp function in C programming firstly. If you have understood already, then go ahead.

Continue Reading

2012-2017 Maksudur Rahman Maateen.

Designed & Developed by Maksudur Rahman Maateen.

Frontend Powered by Semantic UI. Backend Powered by Django.