sudarsan


{ City } berhampur
< Country > india
* Profession * mca
User No # 50695
Total Questions Posted # 0
Total Answers Posted # 4

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 66
Users Marked my Answers as Wrong # 7
Questions / { sudarsan }
Questions Answers Category Views Company eMail




Answers / { sudarsan }

Question { 4294 }

how to find out the biggest element (or any other
operation) in an array which is dynamic. User need not to
mention the array size while executing.


Answer

#include
#include
void main()
{
int n,BIG;
printf("enter the numbers :");
scanf("%d",&n);
BIG=n;
do
{
fflush(stdin);
scanf("%d",&n);
if(n>=BIG)
BIG=n;
}while(((char)n>=65)&&((char)<=122));
printf("the biggest number is : %d",BIG);
getch();
}


it is a good one..
But if the user not give the array size,by using sizeof()
operator we can find the array size then by dividing the
total size with the size of data type ,we can find the
number of elements in the array then after we can find the
largest number of the array .

Is This Answer Correct ?    0 Yes 1 No

Question { 5154 }

1.Why do you call C is middle level language?
2.Why do you call C is userfriendly language.


Answer

1.bcz it has the characteristic of low level language and
the feature of high level language.So it is called as middle
level language......
2.I think C is not user friendly bcz there are many
rules,regulations that means some predefined syntax to do it.
User frendly language is html, Any thing we can write on the
html file and that can run..

Is This Answer Correct ?    7 Yes 1 No


Question { 4850 }

what will be the output for the following program?

main()
{
char ch = 'k';
char c;
printf("%c",c);
}


Answer

no out put
bcz
after declaration, inside the memory
1. a location of 1byte will be reserve for ch

and also for c but the value k be store in ch
and nothing in C.
|----|
|k |ch
|----|


|----|
| |c
|----|

Is This Answer Correct ?    3 Yes 1 No

Question { IBM, 14419 }

Why do u use # before include in a C Progam?


Answer

# is nothing but the preprocessor operator.That means it
will execute before the main() execution.
That means we are required to include that header file
those are required to our program before main(),

Is This Answer Correct ?    56 Yes 4 No