shruti


{ City } pune
< Country > india
* Profession * sap - technical consultant
User No # 13969
Total Questions Posted # 0
Total Answers Posted # 68

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

Users Marked my Answers as Correct # 1350
Users Marked my Answers as Wrong # 556
Answers / { shruti }

Question { Aricent, 8112 }

To what value are pointers initialized?




1) NULL


2) Newly allocated memory


3) No action is taken by the compiler to initialize
pointers.


Answer

Ponters are initialised to newly allocated memory locations.

Is This Answer Correct ?    4 Yes 7 No

Question { 12069 }

Which of the following data structures is on average the
fastest for retrieving data:




1) Binary Tree


2) Hash Table


3) Stack


Answer

hash table

Is This Answer Correct ?    26 Yes 4 No


Question { Infosys, 29983 }

what is the difference between getch() and getchar()?


Answer

@Nishi
the answer you have posted is wrong..

Getch() and getchar() are two inbuilt functions..

in getch()
the argument to the function is any key on the keyboard,
not necessarily be a character (A - Z).

getchar()
the argument is a character -> alphabet (A - Z)..

Is This Answer Correct ?    76 Yes 43 No

Question { 5392 }

how to implement stack work as a queue?


Answer

it can be done using linked list.
create a linked list as a stack..

while displaying
display reverse. :-)

i can write a code for u if u want..

Is This Answer Correct ?    3 Yes 3 No

Question { 18918 }

6)swap(int x,y)
{
int temp;
temp=x;
x=y;
y=temp;
}
main()
{
int x=2;y=3;
swap(x,y);
}
after calling swap ,what are yhe values x&y?


Answer

the values will be x =2 and y = 3.

the variables x and y declared in main() are local to main.

whereas

the variables x and y declared in swap() are local to swap..

the change in the value of the variables in either
function will have zero effect on the other function.

Hence the value remains teh same.

Is This Answer Correct ?    16 Yes 1 No

Question { Aloha Technology, 8322 }

what is the defrenece between structure and union


Answer

Kapildalke -> u are rite..

the differance between a structure and union is that,

in structure memory is allocated to each and every element
of the structure.

in union memory allocated is only of the element which
requires maximum memory.

Is This Answer Correct ?    2 Yes 0 No

Question { Infosys, 78688 }

write a program to find the sum of the array elements in c
language?


Answer

the above prog is perfect..

Is This Answer Correct ?    112 Yes 49 No

Question { Verizon, 57526 }

difference between function & structure


Answer

functions can return values.
structures cannot return values.

we can pass arguments to the function
we cannot pass any argument to the structure.

Is This Answer Correct ?    113 Yes 20 No

Prev    1   2   3   4    [5]