Sunday 11 April 2021

C and C++ Program List

 C and C++ Programs List  - (85 Programs)


Increment and Decrement Operator in C and C++

While and do-while loop in C and C++

Pattern Printing in C and C++

One - D Array in C and C++

2D Array in C and C++

Pointer in C and C++ Qus - 1

Pointer in C and C++ Qus - 2

Pointer in C and C++ Qus - 3

Pointer in C and C++ Qus - 4

Pointer in C and C++ Qus - 5

Pointer in C and C++ Qus - 6

Pointer in C and C++ Qus - 7

Pointer in C and C++ Qus - 8

Function in C and C++ Qus - 1

Function in C and C++ Qus - 2

Function in C and C++ Qus - 3

Function in C and C++ Qus - 4

Function in C and C++ Qus - 5

Structure in C and C++ Qus - 1

Structure in C and C++ Qus - 2

Structure in C and C++ Qus - 3

Structure in C and C++ Qus - 4

Union in C and C++ Qus - 1

Enum in C and C++ Qus - 1

Enum in C and C++ Qus - 2

Storage Classes in C and C++ Qus - 1

Storage Classes in C and C++ Qus - 2

Storage Classes in C and C++ Qus - 3

Object in C++ Qus - 1

Constructor in C++ Qus - 1

Constructor in C++ Qus - 2

Constructor in C++ Qus - 3

setw() in C++

Inheritance in C++ Qus - 1

Inheritance in C++ Qus - 2

Inheritance in C++ Qus - 3

Inheritancein C++ Qus - 4

Inheritancein C++ Qus - 5

Inheritance in C++ Qus - 6

Scope Resolution Operator in C++ Qus - 1

Scope Resolution Operator in C++ Qus - 2

Scope Resolution Operator in C++ Qus - 3

Scope Resolution Operator in C++ Qus - 4



C++ Programs List - 2 (Next)


Class 12 Computer Science with Python Notes

 Class 12 Computer Science (CS) with Python Notes


1. Revision Tour

2. Modules and Libraries

3. Functions

4. File Handling

5. Data Structure

6. DBMS - MySql

7. Computer Networks

8. List of Practical for Class 12 CS

9. List of Projects for Class 12 CS

10. Sample Papers and Assignments

11. Computer Science Objective Type Quick Revision Classes

Weekly Test

Weekly Test - 11 April 2021 Schedule 






ALL THE BEST!!!

Saturday 10 April 2021

Function in C and C++ Qus 5

 #include<stdio.h>

#include<conio.h>

#include<iostream.h>

void show(int );

void show(int a,int b);


void show(int x)

{

cout<<x<<endl;

}

void show(int x,int y)    //formal parameter

{

cout<<x+y<endl;

}

int main()

{

clrscr();

show(5);     //actual parameter-calling

show(8,3);


getch();

return 0;

}

Function in C and C++ Qus 4

 #include<stdio.h>

#include<conio.h>

#include<iostream.h>

void show(int a);

void show(int a,int b);


void show(int a)

{

cout<<a<<endl;

}

void show(int a,int b)

{

cout<<a+b<<endl;

}

int main()

{

clrscr();

show(5);

show(8,3);


getch();

return 0;

}

Function in C and C++ Qus 3

 #include<stdio.h>

#include<conio.h>

//#include<iostream.h>

void show(int a);

void show(int a,int b);


void show(int a)

{

printf("%d",a);

}

void show(int a,int b)

{

printf("\n%d",(a+b));

}

int main()

{

clrscr();

show(5);

show(8,3);


getch();

return 0;

}

Function in C and C++ Qus 2

 #include<stdio.h>

#include<conio.h>

#include<iostream.h>

int sum(int a,int b);

int sub(int a,int b);

int main()

{

clrscr();

cout<<sum(6,3)<<endl;

cout<<sub(6,3)<<endl;

int s=sum(9,5);

cout<<s<<endl;

getch();

return 0;

}

int sum(int a,int b)

{

cout<<"Sum="<<a+b<<endl;

return a+b,a*b;

}

int sub(int a,int b)

{

return a-b;

}

Function in C and C++ Qus 1

 #include<stdio.h>

#include<conio.h>

#include<iostream.h>

//void show();

void show()

{

cout<<"Show-1";

}

int main()

{

clrscr();

show();

//int a=show();

//cout<<endl<<a;

getch();

return 0;

}

/*

void show()

{

cout<<"Show";

}

*/

Pointer in C and C++ Qus 8

 #include<stdio.h>

#include<conio.h>

#include<iostream.h>

int main()

{

clrscr();

int A[2][4]={3,6,9,12,15,18,21,24};

cout<<-A[1][2]<<endl<<-2[1[A]];

cout<<endl<<A[1]<<endl<<*(A+1)<<endl;

cout<<*(A[1]+2)<<endl<<*(*(A+1)+2);



getch();

return 0;

}

Thursday 8 April 2021

Pointer in C and C++ Qus 7

 #include<stdio.h>

#include<iostream.h>

#include<conio.h>

int main()

{

clrscr();

int a=5;

int *p;

p=&a;

cout<<a<<endl;

cout<<++a<<endl;

cout<<p<<endl;

cout<<++p<<endl;

int b=7;

const int *q;

q=&b;

//cout<<q<<endl;

cout<<b<<endl;

cout<<++b<<endl;

int const  *r ;

r=&b;

//cout<<r;

//cout<<q<<endl;

//cout<<++q<<endl;


const int c=5;

const int * const m=&c;

//m=&c;

//*m=10;

const int * n;

n=&c;

++n;

int d=5;

int * const o=&d;

//o++;

d++;

//*o++;

++(*o);

//o=&c;

int const *s=&d;

s++;

d++;

*s++ ;

*s=10;

getch();

return 0;

}