# Search Results

### Simple pointer question

main() { char *s = "IDIOT"; char *start, *end; start = s; end = s+strlen(s)-1; printf("%c, %c",*start, *end); // prints I T...
Thread by: tedman, Mar 17, 2007, 2 replies, in forum: C

### Input String of unknown size??

struct emp{ char *name; int age; }; struct emp apple; main(){ printf("Enter your name :"); //what do i put in here? printf("Enter you...
Thread by: tedman, Feb 9, 2007, 1 replies, in forum: C
3. Post

### Strings and Pointers, I'm confused!

I guess I'll answer my own question! correct me if im wrong. in the first case z = 10 + 20 in the second case 1. x = 10+20 = 30 2. x and y...
Post by: tedman, Feb 8, 2007 in forum: C
4. Post

### Strings and Pointers, I'm confused!

I usually get confused with the ++ operator, please can u try to clarify it. supposed x = 10, y = 20 z = x++ + y++; z=30 now if it...
Post by: tedman, Feb 8, 2007 in forum: C
5. Post

### Strings and Pointers, I'm confused!

thanks boss! problem solved!
Post by: tedman, Feb 8, 2007 in forum: C

### Strings and Pointers, I'm confused!

main() { char *s1 = "Hello, World!"; char *s2; s2 = (char *)malloc(strlen(s1)*sizeof(char)); int i=0; while(i<strlen(s1)){...
Thread by: tedman, Feb 8, 2007, 7 replies, in forum: C
7. Post

### designing a library with data structures

actually the interviewer said that it shudnt be an order n solution, that is the book should be found in the first try itself!
Post by: tedman, Feb 5, 2007 in forum: C

### designing a library with data structures

Another interview question. which data structure would you use to program a library, so that books can be found very fast???
Thread by: tedman, Feb 1, 2007, 4 replies, in forum: C