mahendra giri


{ City } allahabad
< Country > india
* Profession * student
User No # 1338
Total Questions Posted # 0
Total Answers Posted # 14

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

Users Marked my Answers as Correct # 256
Users Marked my Answers as Wrong # 175
Questions / { mahendra giri }
Questions Answers Category Views Company eMail




Answers / { mahendra giri }

Question { HP, 34824 }

What is an volatile variable?


Answer

volatile variable is that which we can't change during
program execution tome

Is This Answer Correct ?    2 Yes 35 No

Question { HP, 20096 }

How the C program can be compiled?


Answer

We can compile program after writing code by pressing short
key Alt+F9 or by going on the menu compile->compile

Is This Answer Correct ?    1 Yes 3 No


Question { HP, 16428 }

What are the preprocessors?


Answer

preprocessor is which tells the compiler what header file
we are going to use in our program
#include
will tell the compiler that it include header file standard
input output

Is This Answer Correct ?    3 Yes 2 No

Question { Google, 19589 }

why should i hire u


Answer

because i true statnd on ur requirement,and u need best

Is This Answer Correct ?    1 Yes 4 No

Question { Infotech, 35817 }

Write a program to interchange two variables without using
the third variable?


Answer

#include
#include
void main()
{
int a,b,c;
clrscr();
printf("Enter two no");
scanf("%d%d",&a,&b);
c=a+b;
b=a-b;
a=a-b;
printf("After chanching no is =\n");
printf("a=%d b=%d",a,b);
getch();
}

Is This Answer Correct ?    23 Yes 44 No

Question { Geometric Software, 8903 }

What compilation do?


Answer

compiler main work is to convert source code to target
code ,means when we compile our program ,source code are
converted into binary form (system understantable form)and
then execute it to user understable form.

Is This Answer Correct ?    3 Yes 0 No

Question { Wipro, 90782 }

main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}


Answer

x=57
y=59

Is This Answer Correct ?    20 Yes 46 No

Question { HP, 6852 }

To sorting array of 10 elements which sorting is best
a)selection
b)bubble
c)tree sort


Answer

Selection is simple in all the three so we should do it
through selection sort

Is This Answer Correct ?    14 Yes 1 No

Question { Hughes, 4463 }

converting 41.685 to binary


Answer

101001.1010

Is This Answer Correct ?    3 Yes 1 No

Question { Mascot, 9289 }

What is meant byStatic Variable ?


Answer

static variable or method is not accessable outside the
class where it has been declared.

Is This Answer Correct ?    3 Yes 3 No

Question { TCS, 24662 }

What is the value of y in the following code?
x=7;y=0;
if(x=6)
y=7;
else
y=1;


Answer

y will be 7 because in the if condition we have assigned
value 6 on x not ==,so ans of
y =7

Is This Answer Correct ?    40 Yes 2 No

Question { TCS, 54126 }


main()
{
int x=10,y=15;
x=x++;
y=++y;
printf("%d %d\n",x,y);
}

output??


Answer

11 16

Is This Answer Correct ?    133 Yes 33 No

Question { 5554 }

what is use#in c


Answer

# is preprocessor which tell compiler that what header
file we using in our program.
for example:
#include
void main()
in the above when compiler check program it start execution
of program from main and will tell that uor header file
is "standard input output header file"

Is This Answer Correct ?    8 Yes 0 No

Question { 7637 }

what is compiler


Answer

compiler is translator,which translate source code to target

Is This Answer Correct ?    2 Yes 1 No