Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
C program for bubble sort:
void main()
{
int i,j,k,a[10],n;
clrscr();
printf("How many values you want to enter\n");
scanf("%d",&n);
for(i=0;i<=n-1;i++)
printf(" %d no?\n",i+1);
scanf("%d",&a[i]);
}
for (i=0;i<=n-1;i++)
for(j=0;j { if (a[j]>a[j+1]) { k=a[j+1]; a[j+1]=a[j]; a[j]=k; } } for(i=0;i<=n-1;i++) printf("%d\n",a[i]); getch(); }
if (a[j]>a[j+1])
{ k=a[j+1];
a[j+1]=a[j];
a[j]=k;
for(i=0;i<=n-1;i++) printf("%d\n",a[i]);
getch();
Define The Return Statement in Computer Programming? The return statement is used for two purposes once the return statement is executed the program control will be immediately
Derived Data Type: Array is derived data type to store large collection of data of only one data type. int mark[100]; char names[25]; Function: will be discussed early
Pebble Merchant Problem Description There is a pebble merchant. He sells the pebbles, that are used for shining the floor. His main duty is to take the length of the room’s sides
What's a six-letter word that has an e as its first, third, and fifth letter? Can you find an anagram of pine grave. Or how about a word that starts and ends with ant (other than a
What are pre-processor directives? - Pre-processor directives are placed at the beginning of a C program. They begin with # symbol. - This is the place, where library files
Ask question #Minimum 100 words accepted program for polishing jewels#
Type Casting Implicit type conversions, as allowed by the language, can lead to errors creeping in the program if care is not taken. Thus, explicit type conversions may be used
what is classes?
It is standard on functions to provide some indication that the function has succeeded in its operation. Consider the Scanf function: scanf("%d",&number1); If the functio
Function Overloading Function overloading is a form of polymorphism. Function overloading facilitates explaining one function having many forms. In other words it facilitates e
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd