The Power Of Knowledge

WWW.AVPOWERTECH.COM

PROGRAM TO PRINT YOUR NAME USING FUNCTION

/* PROGRAM TO PRINT YOUR NAME USING FUNCTION */ #include<stdio.h> #include<conio.h> void name(); void main() { clrscr(); name(); getch(); } void name() { char a[100]; printf(“\n\n\t\tENTER THE NAME : “); gets(a); printf(“\n\n\t\tYOUR NAME IS : “); puts(a); }

PROGRAM TO PRINT NUMBER 1 TO 10 USING FUNCTION

/* PROGRAM TO PRINT NUMBER 1 TO 10 USING FUNCTION */ #include<stdio.h> #include<conio.h> void func(); void main() { clrscr(); func(); getch(); } void func() { int i; printf(“THE NUMBERS FROM 1 TO 10 ARE DISPLAYED FOLLOWING\n”); for(i=1;i<=10;i++) { printf(“\n %d”,i); } }

PROGRAM TO MERGE TWO ARRAYS

/* PROGRAM TO MERGE TWO ARRAYS */ #include<stdio.h> #include<conio.h> void main() { int a[100],b[50],i,j,num_a,num_b; textcolor(91); clrscr(); printf(“\n\n\t\tENTER THE NUMBER OF ELEMENTS FOR ARRAY A :”); scanf(“%d”,&num_a); printf(“\n\n\t\tENTER ELEMENTS of A\n”); for(i=1;i<=num_a;i++) { printf(“\n\n\t\t”); scanf(“%d”,&a[i]); } printf(“\n\n\t\tENTER THE NUMBER OF ELEMENTS FOR ARRAY B :”); scanf(“%d”,&num_b); printf(“\n\n\t\tENTER ELEMENTS OF B\n”); for(i=1;i<=num_b;i++) { printf(“\n\n\t\t”); scanf(“%d”,&b[i]); a[num_a+i]=b[i]; }…
Read more

Program to Find Maximum Element from an array

/* Program to Find Maximum Element from an array */ #include<stdio.h> #include<conio.h> void main() { int aray[20],max,i,num; clrscr(); printf(“\n\n\t\tENTER THE NUMBER OF ELEMENTS : “); scanf(“%d”,&num); printf(“\n\n\t\tENTER ELEMENTS\n”); for(i=1;i<=num;i++) { scanf(“%d”,&aray[i]); } max=aray[1]; for(i=1;i<=num;i++) { if(aray[i]>=max) { max=aray[i]; } } printf(“\n\n\t\tTHE MAXIMUM ELEMENT OF ARAY IS :%d”,max); getch(); }

PROGRAM TO FIND ODD AND EVEN NUMBERS

/* PROGRAM TO FIND ODD AND EVEN NUMBERS */ #include<stdio.h> #include<conio.h> void main() { int aray[30],odd[30],even[30],i,num; int even_count=0,odd_count=0; clrscr(); printf(“\n\n\t\tENTER THE NUMBER OF ELEMENTS :”); scanf(“%d”,&num); printf(“\n\n\t\tENTER ELEMENTS\n”); for(i=1;i<=num;i++) { printf(“\n\n\t\t”); scanf(“%d”,&aray[i]); } for(i=1;i<=num;i++) { if(aray[i]%2==0) { even_count++; printf(“\n\n\t\teven number %d\t\n”,aray[i]); } else { odd_count++; printf(“\n\n\t\todd number %d\t\n”,aray[i]); } } printf(“\n\n\t\tYOU HAVE ENTERED EVEN NUMBERS…
Read more

PROGRAM TO FIND THE SUM OF DIAGONAL ELEMENTS

/* PROGRAM TO FIND THE SUM OF DIAGONAL ELEMENTS */ #include<stdio.h> #include<conio.h> void main() { int aray[10][10],i,j,row,col,sum=0; clrscr(); printf(“\n\nENTER THE NUMBER OF ROWS : “); scanf(“%d”,&row); printf(“\n\nENTER THE NUMBER OF COLUMNS :”); scanf(“%d”,&col); printf(“\n\nENTER THE ELEMENTS OF MATRIX \n\n”); for(i=1;i<=row;i++) { for(j=1;j<=col;j++) { scanf(“%d”,&aray[i][j]); } } for(i=1;i<=row;i++) { for(j=1;j<=col;j++) { if(i==j) sum=sum+aray[i][j]; } } printf(“\n\n\t\tTHE…
Read more

PROGRAM TO FIND THE SUM AND AVERAGE OF N ELEMENTS

/* PROGRAM TO FIND THE SUM AND AVERAGE OF N ELEMENTS */ include<stdio.h> include<conio.h> void main() { int aray[30],i,num,count=0; float avg=0.0,sum=0.0; clrscr(); printf(“\n\n\t\tENTER THE NUMBER OF ELEMENTS :”); scanf(“%d”,&num); printf(“\n\n\t\tENTER ELEMENTS\n”); for(i=1;i<=num;i++) { printf(“\n\n\t\t”); scanf(“%d”,&aray[i]); count++; } for(i=1;i<=num;i++) { sum=sum+aray[i]; } printf(“\n\n\t\tTHE SUM OF ENTERED NUMBERS IS : %f”,sum); avg=sum/count; printf(“\n\n\t\tTHE AVERAGE OF ENTERED NUMBERS…
Read more

PROGRAM TO PRINT THE ARRAY ELEMENTS

/* PROGRAM TO PRINT THE ARRAY ELEMENTS */ #include<stdio.h> #include<conio.h> void main() { int aray[30],i,num; clrscr(); printf(“\n\n\t\tENTER THE NUMBER OF ELEMENTS :”); scanf(“%d”,&num); printf(“\n\n\t\tENTER ELEMENTS \n\t\t”); for(i=1;i<=num;i++) { scanf(“%d”,&aray[i]); printf(“\n\t\t”); } printf(“\n\n\t\tYOU HAVE ENTERED THE FOLLOWING ELEMENTS \n”); for(i=1;i<=num;i++) { printf(“\n\n\t\t%d”,aray[i]); } getch(); }

Solved Problem using C Language (SUPPOSE IN A SHIP THERE ARE 30 PERSONS AND 15 LIFE JACKETS.ONLY THESE LIFE JACKETS CAN SAVE THE LIFE OF PERSONS.WE HAVE TO SET THE LOOP IN SUCH A WAY THAT ONLY CAPTAIN’S 15’S EMPLOYEES GET LIFE JACKETS AND SAVE THEIR LIFE)

/* SUPPOSE IN A SHIP THERE ARE 30 PERSONS AND 15 LIFE JACKETS.ONLY THESE LIFE JACKETS CAN SAVE THE LIFE OF PERSONS.WE HAVE TO SET THE LOOP IN SUCH A WAY THAT ONLY CAPTAIN’S 15’S EMPLOYEES GET LIFE JACKETS AND SAVE THEIR LIFE. */ / * INCLUDE HEADER FILES***/ #include<stdio.h> #include<conio.h> / * DECLARE SELF-REFRENTIAL…
Read more

WRITE A PROGRAM TO PERFORM THE OPERATIONS OF SINGLY LINKED LIST

/*WRITE A PROGRAM TO PERFORM THE OPERATIONS OF SINGLY LINKED LIST */ / * INCLUDE HEADER FILES**/ #include<stdio.h> #include <conio.h> #include <string.h> #include <ctype.h> / * DECLARE SELF REFRENTIAL STRUCTURE/ struct node { char info[40]; struct node next;//POINTER WHICH POINTS TO THE NEXT NODE }head=NULL; / * DECLARATION OF THE FUNCTIONS THAT ARE USED IN…
Read more

WRITE A PROGRAM TO IMPLEMENT VARIOUS OPERATION ON DOUBLE CIRCULAR LINKED LIST USING STRING

/*INCLUDE HEADER FILES**/ #include<stdio.h> #include<conio.h> #include<ctype.h> /*DECLARE PROTOTYPE OF FUNCTIONS**/ void insert(); void delet(); void display(); void modify(); void upper(); void sort(); void location(); void remove1(); /*DECLARE SELF REFRENTIAL STRUCTURE**/ struct linked_list { char info[50]; struct linked_list *next; struct linked_list *prev; }start=NULL,node,tail,loc1,*ptr; /*MAIN FUNCTION START HERE**/ void main() { int choice,check; //DECLARE LOCAL VARIABLE char…
Read more

TO ENTER THE STRINGS IN STACK USING POINTERS

/ * TO ENTER THE STRINGS IN STACK USING POINTERS */ /*HEADER FILES****/ #include<stdio.h> /*TO USE scanf() & printf()*/ include<conio.h>/*TO USE getch()*/ include<stdlib.h>/*TO USE exit()*/ /*USING OF STRUCTURE*/ typedef struct node / * CHANGES NAME OF EXISTING DATA TYPES * / { char info[50]; struct node *next; /*USE OF SELF REFRENTIAL STRUCTURE* TO POINT TO…
Read more

SQL Fundamentals

No SQL FUNDAMENTAL: Structured Query Language (SQL) is language that provides an interface to relational database systems. SQL was developed by IBM in the 1970s for use in System R, and is a de facto standard, as well as an ISO and ANSI standard. SQL is often pronounced SEQUEL. SQL is a simple and powerful…
Read more

Program to implement Doubly Linked List with String using C Language

/* Program to implement Doubly Linked List with String using C Language */ #include<studio.h> #include<conio.h> #include<string.h> #include<ctype.h> struct list { char info[40]; struct list *next; struct list *prev; }head=NULL,tail=NULL; void insertion(); void deletion(); void display(); void modify(); void main() { int choice,check; char ch; clrscr(); do { textcolor(9); clrscr(); printf(“\n\n\t===============================================”); printf(“\n\n\t\t\tMENU”); printf(“\n\n\t===============================================”); printf(“\n\n\t1.INSERT THE STRING…
Read more

PSPCL Recruitment 2019 – 3500 Assistant Lineman Vacancy @ pspcl.in PSPCL Recruitment 2019 PSPCL aka Punjab State Power Corporation Limited invites Sarkari Job application for the post of 3500 Assistant Lineman. Apply Online before 25 August 2019. PSPCL Recruitment Qualification/eligibility conditions, how to apply & other rules are given below… Official website is www.pspcl.in

PSPCL – 3500 Assistant Lineman Vacancy – Last Date 25 August 2019 Post Name Assistant Lineman No Of PSPCL Vacancy 3500 Pay Scale 6400 – 20200/- pspcl.in Qualification ITI Age Limit 18 to 37 years Punjab Power Job Location Punjab Punjab State Power Corporation Limited – PSPCL Recruitment – 850 Lineman Apprentice Vacancy – Last…
Read more

Join Indian Army Recruitment 2019 – 213 JAG 24th Course, NCC Special Entry Scheme 47th Course & SSC Officers (AFMS) Vacancy @joinindianarmy.nic.in

Join Indian Army Recruitment 2019 Indian Army Invites Sarkari Job applications for the post of 213 JAG 24th Course, NCC Special Entry Scheme 47th Course & SSC Officers (AFMS) Vacancy 2019. Indian army recruitment Qualification/ eligibility conditions, how to Registration & other rules are give below…  Official website is www.joinindianarmy.nic.in Join Indian Army – JAG…
Read more

HSSC Jobs 2019 – Apply 2978 Clerk, Officer, Engineer Vacancies

Post Names: Clerk, Accountant, Steno Typist, Technician, Assistants etc. No of Vacancies: 2978 Vacancies Eligibility: Matric, ITI, Degree, Post Graduate Government of Haryana State, Haryana Staff Selection Commission (HSSC) invites online applications for direct recruitment for 2978 posts of DHBVN, UHBVN and HVPNL. Haryana Staff Selection Commission (HSSC) invites online applications for direct recruitment for…
Read more

“A Masterpiece of Self” by Neha Chauhan

See the miracle of god. ‘We’ being the best creation- become the most wonderful- when we start realizing the strength of real ‘Me’. No wonder to say – “I am an Ocean – I am only emotion”; “I am a sound but why I am not so profound”; “Move ahead in search of your “Self”…
Read more

Google Assistant and the Google search app on Android & iPhone

Google Assistant has now come to Android phones beyond Google’s own Pixel. It’s a significant change to how Google’s previously offered search on mobile devices. It’s also the latest in a wide variety of ways people can search with Google on Android. Below, how Google Assistant fits in with Google’s other search options on Android, as…
Read more

Pair your phone with WhatsApp Desktop

Open WhatsApp. You can either: Click this link to download and install WhatsApp on your computer. Open WhatsApp Web on your browser. When prompted with a QR code, use the QR scanner within WhatsApp to scan it. To do so, open WhatsApp on your phone. On Android: in the Chats screen > More options  > WhatsApp Web. On iPhone: go to Settings  > WhatsApp Web . On Windows…
Read more

error: Content is protected !!