You are here

Page not found

Search results

  1. 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

  2. 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

  3. 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

  4. 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

  5. C program to find roots of a quadratic equation

    C program to find roots of a quadratic equation: Coefficients are assumed to be ... may not be real. For a quadratic equation ax 2 + bx + c = 0 (a≠0), discriminant (b 2 -4ac) decides the nature of roots. If it's ... equation sum of its roots = -b/a and product of its roots = c/a. Let's write the program now. ...

    Yogesh Suneja - 04/11/2020 - 14:12

  6. 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

  7. 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

  8. 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

  9. C graphics programs

    All these programs have been made using C graphics. Program for various type of charts and other interesting things and patterns. C graphics programs Draw shapes Bar chart Pie chart ...

    Yogesh Suneja - 19/05/2018 - 17:21

  10. C++ constructor example

    C++ constructor example program: Constructor are functions having name as that ... have return type and are used to initialize objects. C++ constructor program example #include <iostream> using ...

    Yogesh Suneja - 06/02/2018 - 13:57

Pages