User Profile
Collapse
-
what is difference between static and dynamic polymorphism?
can anybody brief it -
-
santechselva replied to int i=2; printf("%d %d",++i,++i); how can o/p be 4 4 with any order of evaluationin Chi,
the output is 3 2.i don't know how you are supposed to get 4 4 .
regards,
santosh -
for(i=0;i<10;i+ +)
{
for(j=1+1;j<10; j++)
{
if(a[i]>a[j])
{
a[i]=k;
a[i]=a[j];
a[j]=k;
}
}
}
THIS IS USED FOR SORTING OF 10 NUMBERS IN ASCENDING ORDER
MODIFY YOUR PROGRAM BY PRINTING THE FIFTH ELEMENTLeave a comment:
-
santechselva replied to please explain me the size of int ,float.,char,double,and pointers in 16 and 32 bitin Cfor 32 bit system
int 4 bytes
float 4 bytes
char 1 byte
double 8 bytes
short int 2 bytes
long int 4 bytes...Leave a comment:
-
#include<stdio. h>
#include<conio. h>
void main()
{
int i=0,j,k,l,m;
char a[20];
clrscr();
for(k=0;k<4;k++ )
{
printf("enter value for sorting");
scanf("%s",&a[k]);
}
for(i=0;i<4;i++ )
{
for(j=i+1;j<4;j ++)
{
if(a[i]>a[j])
{
l=a[i];
a[i]=a[j];
a[j]=l;
}
}
}
for(m=0;m<4;m++ )...Leave a comment:
-
What does fflush(stdin) do?
hi,
what is the use of fflush(stdin) in c programing.
regards,
santosh -
How to approach to the following program
How to give output in words for the input given in numbers?
For example:
1234
one thousand two hundred and thirty four
No activity results to display
Show More
Leave a comment: