C / C++

cpp

[3 Ways] C/C++ Program to Swap Two Numbers Without Using Temporary Variable

How to write a C program to swap two numbers without using temporary variable? Use addition, subtraction, Multiplication, Division and XOR operation instead of extra space.

bit manipulation

[Two Easy Methods] How to Find 2’s Complement?

How to find 2’s complement of any number? 2’s complement of the number will be helpful in many bit operations.

Code

Write a C Program to Remove White Spaces from String

Write a C program to remove white spaces from string. You have given a string which includes multiple words.

cpp

Storage Classes in C and C++ | Explained with Example

Every datatype has storage classes in C and C++ that defines scope and visibility of variables. Here are different types of storage classes with example.

OOPs Concept

Object Oriented Programming Concepts | Asked in Many Interviews

What are the Object Oriented Programming Concepts? What are the questions asked on OOPs Concept in interview.

c-string

Program to Check Palindrome String in C, Python

Write a program for palindrome in C, Python? What is Palindrome and how to identify or find if the string is Palindrome or not?

c-string

[Solved] Undefined reference to strrev | Error Code in C

Got error “undefined reference to strrev” while coding in C? Or for any other string function. Runs fine on one of the system, not on other systems?

coding challenge

How to Find Next Greater Number with Same Set of Digits in C?

How to Find Next Greater Number with same Set of Digits of a Given Number in C Program? This is a coding question as well as asked in many interview coding rounds.

c-string

How to Write a code to implement strstr function in C?

Write a program to implement strstr function in C. Complete code explained about implementing string function strstr.