Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
~1K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Clearner123

I found the following logic for binary search from the standard book i feel it fails in some /* binsearch: find x in v[0] <= v[1] <= ... <= v[n-1] */ int binsearch(int x, int v[], int n) { int low, high, mid; low = 0; high = n - …

Member Avatar for Clearner123
0
195
Member Avatar for Clearner123

Hi all, Suppose if I write two programs of same functionality but with different methods and want to measure the run time efficiency how do i know? I mean to say i want to measure the run time of each code how do i do it? Should i check the …

Member Avatar for Mayukh_1
0
322
Member Avatar for Clearner123

I am very confused with the following thing #include <stdio.h> int main(void) { int array[3]={1,2,3}; int (*p)[3]; p = &array; /* Here p contians address of the array */ return 0; } Here p contains the adddress of the array. I am very confused why *p does not give me …

Member Avatar for Clearner123
0
163
Member Avatar for Clearner123

Hi all, I have implemented a sort of circular buffer in C for embedded system the code is something like this #define BUFFER_LENGTH 25 UINT8_T array[BUFFER_LENGTH]; UINT8_T increment_interrupt; void interrupt(void) { increment_interrupt++; array[increment_interrupt] = data; if(increment_interrupt == 25) increment_interrupt = 0; } UINT8_T g_old_Index_u8=0; UINT8_T g_new_Index_u8=0; void main() { g_old_Index_u8 …

Member Avatar for gusano79
0
142
Member Avatar for Clearner123

Hi, I have this doubt i have read that "We must declare c to be a type big enough to hold any value that getchar returns We can't use char since c must be big enough to hold EOF in addition to any possible char. Therefore we use int." it …

Member Avatar for Clearner123
0
128
Member Avatar for Gà_1

*I wrote these problems last night (except 19th problem), and code them at the morning, so, hope you all enjoy coding. This is ordiginal post of these 20 problems. Any question about the clarity of problems please post on below or contact me via pm, and your solutions too.* *If …

Member Avatar for Gà_1
0
378