Write a program to store 5 elements in the array P and 3 elements in the array Q.Produce a third array R after joining the array P and Q.Display the resultant array.
program to store 5 elements in the array P and 3 elements in the array Q.
- 4574 दृश्य
- 1 उत्तर
1 उत्तर
-
-
- 30 जुलाई
- 0 टिप्पणी
-
- C programming Program to print the Fibonacci series up to n numbers.
- Write a program to read the marks of 50 students in a class and display the following:
- Лучшие игры 3d на Андроид
- Mention the four important part of looping.
- Short circuit logical operators used in C language.
- What site is the best video tutorial website for learning C programming?
- Should I learn C before C++? Explain your answer
- What are the best books for C Programming preparations?
- Is C++ better than C sharp? Explain your answer
- Программы и игры для Андроид телефона
मॉक परीक्षण अभ्यास के लिए
c programming
#include<stdio.h>br /#include<conio.h>br /void main()br /{br / int p[5],q[3],r[8],i,j;br /clrscr();br /printf("enter the elements of an array P-\n");br /for(i=0;i<5;i++)br /scanf("%d",&p[i]);br /printf("enter the elements of an array Q-\n");br /for(i=0;i<5;i++)br /scanf("%d",&q[i]);br /printf("After joining P and Q..............-\n");br /for(i=0;i<5;i++)br /r[i]=p[i];br /for(j=0;j<3;j++)br /{br / r[i]=q[j];br /i++;br /}br /printf("Total elements of an array R-\n");br /for(i=0;i<8;i++)br /printf("%d\n",r[i]);br /getch();br /}br /