Page not found
Search results
Scope resolution operator in C++
Scope resolution operator (::) in C++ is used to define a function outside a class or when we want to use a ... but also has a local variable with the same name. C++ programming code #include <iostream> using namespace std ; char c = 'a' ; // global variable (accessible to all functions) ...
Yogesh Suneja - 31/10/2019 - 20:55
C++ program to generate random numbers
C++ program to print random numbers. C++ programming code #include <iostream> #include <cstdlib> ... ; int main ( ) { int n, t, c ; cout << "Enter the number of random numbers you want" ...
Yogesh Suneja - 31/10/2019 - 19:57
C program to merge two arrays
C program to merge two arrays into another array. They are assumed to be sorted ... = window.adsbygoogle || []).push({}); C program to merge two sorted arrays // It is assumed a user will ... [ 100 ] , b [ 100 ] , m , n , c , sorted [ 200 ] ; printf ( "Input number of ...
Yogesh Suneja - 19/11/2019 - 20:02
C program to get IP address
C program to print IP (Internet Protocol) address of your computer, system ... works for Windows XP and Windows 7. If you are using Turbo C compiler then execute this program from the folder, it may not work when you ... = window.adsbygoogle || []).push({}); C program #include<stdlib.h> int main ( ) { ...
Yogesh Suneja - 23/11/2019 - 11:40
C program to find maximum and minimum number in an array
C program to find the maximum and minimum number in an array. A user will input ... find the largest and the smallest number in the array. C program #include <stdio.h> int main ( ) { int a [ 100 ] , size , c , l , L ; printf ( "Enter the number of elements in ...
Yogesh Suneja - 24/11/2019 - 00:12
Java while loop
... to execute statement(s) until a condition is true. In this tutorial, we learn to use it with examples. First of all, let's discuss its ... conditions such as while ( a > b && c != 0 ) { // Loop body } Loop body is ...
Yogesh Suneja - 04/12/2019 - 09:14
C program to restrict mouse pointer in a circle
C program #include<graphics.h> #include<conio.h> ... ; initgraph ( & gd , & gm , "C: \\ TC \\ BGI" ) ; if ( ! initmouse ( ) ... ) ; return 0 ; } C programming: Mouse Programs ...
Yogesh Suneja - 01/12/2019 - 08:56
C program to copy a file
C program to copy a file: This program copies a file, firstly you will specify ... to copy in "read" mode and target file in "write" mode. C program #include <stdio.h> #include <stdlib.h> int ... File copy program. Output of program: C programming: C programs ...
Yogesh Suneja - 23/11/2019 - 11:40
C program to swap two strings
C program to swap two strings, i.e., their contents are interchanged. C program #include <stdio.h> #include <string.h> int ... strings program. Output of program: C programming: C programs ...
Yogesh Suneja - 23/11/2019 - 11:40
C program to merge two files
C program to merge two files and store their contents in another file. The ... = window.adsbygoogle || []).push({}); C program #include <stdio.h> #include <stdlib.h> int ... files program. Output of program: C programming: C programs ...
Yogesh Suneja - 23/11/2019 - 11:40