No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
enquiry kid
- Interests
- browsing, playing aoc, reading books
[code]void strcpy(char *s, char *t) { while ( (*s++ = *t++) != `\0);}[/code] i saw this code in a particular book..... in the what does the assignment statement (*s++=*t++) return each time it gets executed........ all along i was thinking that the assignment statement return a 0 or 1 based … |
|
in our college we have a repeated C aptitude question... which goes like this.... [code] int i=5 printf("%d %d %d", i--,i,i++) [/code] and the answer given to us was 5,6,5.... when asked it was said that the compiler evaluates printf from right to left...... can somebody throw some light on … |
|
in C there are certain variables from other programs which we would need to access... how can it be accessed and what is the type of variable and the coding used.... |
|
can someone give me of a list of escape sequences in C..... i would like to know all of them if possible..... thanks in advance... |
|
In C the variables are often declared using keywords like auto, extern, static, const etc..... i just want to know what is the function of each.... where are they used and a system level interpretation i.e. how the system interprets these variables.... can somebody help.... |
|
i posted a thread earlier and from the links given to me there i found that scanf(), gets() and some functions in C cause a lot of problem when an erroneous input is given.... 1. i want to know how these problems are avoided while programming 2. if these functions … |
|
i know some basic programming in C... now C++ is a necessity for me.... i dont have any problem with syntax... my problem is i want to know what all i must study to get accustomed to C++ i.e. the concepts that C++ has and C doesn't.... |
|
consider the structure [code]struct gun { char name[50]; int magazinesize; float calibre; };[/code] i found in the site [url]http://www.cs.cf.ac.uk/Dave/C/node9.html#SECTION00900000000000000000[/url] that the tag (i.e gun) of the structure is optional.... in that case wouldn't there be a problem when we declare a variable of type struct or if we have more … |
|
when an array is received as a parameter by a function then whatever the dimensions of the array the first subscript is specified with empty braces i.e[ ] why is it so..... what is the implication of such a declaration [code] int sort(list[][a]) { /*statements*/ }[/code] |
|
i find this clock() function can be used to find the execution time between two particular statements in the code.... how to find it for the entire program,,, i mean right from the time the program is loaded and other OS and compiler related stuff............ |
|
"We can also have null statements by just including a ; or let the switch statement fall through by omitting any statements (see e.g. below). The default case is optional and catches any other cases." i found these lines about the switch case statement in a site.... i couldn't understand … |
|
i found that the limits of int and short int are the same........ i just want to know then what is the need of 2 with the same limits.... |
|
Re:
Hello again people, I've got some questions about timing that I hope can be answered by someone. I'm trying to use the functions [I]getrusage[/I] or [I]times[/I], or the [I]time[/I] command to time my programs. Now I've got this piece of code that uses getrusage, and my first question is a … |
|
Re:
i have to find two time stamps one at the begining of main and at the end of main and take the difference to find the time elapsed to execute the code in between.Can anybody suggest the programs or proper API s in Linux. |