11 Oct 2019
October 11, 2019
Amitraj
Related Posts:
C program to design Login Screen by validation username and password C program to design Login Screen by validation username and password Read username and password and check it with the given values (just like, login screen) using C program. In this program we will design a login scr… Read More
C++ program to swap two numbers without using temporary and Arithmetic Operator C++ program to swap two numbers without using temporary and Arithmetic Operator #include<iostream> using namespace std; int main() { int a,b; cout<<"Enter 2 no.:"; cin>>a>… Read More
C program to find if machine is little endian or big endian // C program to find if machine is little endian or big endian #include <stdio.h> int main() { unsigned int n = 1; char *c = (char*)&n; if (*c) { printf("Little endian.."); } else { … Read More
Program to divide an integer by 4 without using ‘/’ operator Program to divide an integer by 4 without using ‘/’ operator. One of the most efficient way to divide an integer by 4 is to use right shift operator (“>>”). // CPP program to divi… Read More
Print all natural numbers upto N without using semi-colon Print all natural numbers upto N without using semi-colon. We use the idea of recursively calling main function. // CPP program to print all natural numbers upto // N without using semi-colon #include<iost… Read More