Welcome To Tutorialspoint.dev
Officially launched 18th May 2019

# Why variable name does not start with numbers in C ?

In C, apart from keywords everything in the C program is treated as Identifier. Identifier can be the names given to variables, constants, functions and user-defined ...

# Find the minimum distance between two numbers

Given an unsorted array arr[] and two numbers x and y, find the minimum distance between x and y in arr[]. The array might also contain duplicates. You may assume tha...

# Modulus on Negative Numbers

What will be the output of the following C program? #include &lt;stdio.h&gt; int main() { &#xA0;&#xA0;&#xA0;int a = 3, b = -8, c = 2; &#xA0;&#xA0;&#xA0;...

# How to Count Variable Numbers of Arguments in C?

C supports variable numbers of arguments. But there is no language provided way for finding out total number of arguments passed. User has to handle this in one of th...

# C Program to print numbers from 1 to N without using semicolon?

How to print numbers from 1 to N without using any semicolon in C. #include&lt;stdio.h&gt; #define N 100 &#xA0;&#xA0; // Add your code here to print number...

# To find sum of two numbers without using any operator

Write a program to find sum of positive integers without using any operator. Only use of printf() is allowed. No other library function can be used. Solution It&#x20...

# How will you print numbers from 1 to 100 without using loop?

If we take a look at this problem carefully, we can see that the idea of &#x201C;loop&#x201D; is to track some counter value e.g. &#x201C;i=0&#x201D; till &#x201C;i &...

# Add two numbers represented by linked lists Set 2

Given two numbers represented by two linked lists, write a function that returns sum list. The sum list is linked list representation of addition of two input numbers...

# Write a one line C function to round floating point numbers

Algorithm: roundNo(num) 1. If num is positive then add 0.5. 2. Else subtract 0.5. 3. Type cast the result to int and return. Example: num = 1.67, (int) num +...

# Add two numbers without using arithmetic operators

Write a function Add() that returns sum of two integers. The function should not use any of the arithmetic operators (+, ++, &#x2013;, -, .. etc). Sum of two bits can...