Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~869 People Reached
Favorite Forums
Favorite Tags
c x 22
Member Avatar for geeksforgeek

Hello everyone I am using bsearch() method to find whether the element is in list or not, but i don't know how to find the index of that element. here is the code which i have done:-- [CODE] #include <stdlib.h> #include <stdio.h> int arr[11] = { 10,22,37,49,51,66,68,73,75,79,81 }; int comp(const …

Member Avatar for gerard4143
0
92
Member Avatar for geeksforgeek

hello daniweb... i got my head struck with the code, and unable to understand the output.please help.. [CODE] int main(void) { float i=3.3; if(i < 3.3) printf("hy"); else printf("bye"); return 0; } [/CODE] output should by bye as 3.3 < 3.3 condition false , but why it is printing hy. …

Member Avatar for Narue
0
142
Member Avatar for geeksforgeek

explain the output:-- [CODE] int main(void) { int a=10,b; a=a+b-(b=a); printf("%d",a); } [/CODE] I am not understanding it. the precedence of bracket() is greater so b is assigned to a so expression becomes- a=a+a-a which should be equal to a but it is not why?

Member Avatar for geeksforgeek
0
199
Member Avatar for geeksforgeek

hello daniweb.. can any one please explain me the following code:- [CODE] #include<stdio.h> int main(){ char far *p =(char far *)0x55550005; char far *q =(char far *)0x53332225; *p = 80; (*p)++; printf("%d",*q); return 0; } [/CODE] as per my knowledge far * is not used now.. but far pointer is …

Member Avatar for geeksforgeek
0
76
Member Avatar for geeksforgeek

Help.....!! Please explain me the output of the following code.I am unable to understand why infinte loop is occuring for i>126. [CODE] #include<stdio.h> int main(void) { char i=2; while(i<=127) { printf("%d\n",i); i+=1; } return 0; } [/CODE]

Member Avatar for Narue
0
100
Member Avatar for geeksforgeek

hello daniweb, I am new to C Programming,can anyone explain me the functionality and uses of getline(),with advantages and its disadvantages and where to use? thanks in advance

Member Avatar for D.M.
0
139
Member Avatar for geeksforgeek
Member Avatar for geeksforgeek
0
121