- Strength to Increase Rep
- +3
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
EDIT: Please note, as I write this, the post is now 6 years old and might have some outdated information. I'd personally recommend beginners start with "Learn C the hard way" by Zed and this book since I have heard good things about them. Reading the FAQ put together by … |
|
Re:
Hi all, I working in VC++. I have a void pointer. I am assigning a memory block to it using malloc(). void* buf_ptr = NULL; buf_ptr = malloc(1428480); I am filling this buffer using fread(). and I want to index this buffer (buf_ptr) to acces its data. How can I … |
|
Re:
greetings, im writing that program that creates a 2 square matrices that need to be added. but the trick is i need to use pthreads in order to do it... for soem reason my output is just 0. Any help would be appreciated im almost done im just stuck on … |
|
Re:
Getting this error don't understand really what i need to do to trouble shoot... hw.c: In function ‘PrintMatrix’: hw.c:14: error: subscripted value is neither array nor pointer hw.c: In function ‘main’: hw.c:27: warning: passing argument 1 of ‘PrintMatrix’ makes integer from pointer without a cast [ICODE] #include <stdio.h> #include <pthread.h> … |
|
Re:
When I execute this code ,it accepts 2 nos,prints the msg enter your choice and terminates.. [code=c] #include<stdio.h> int main() { char ch; int a,b; printf("enter 2 nos :"); scanf("%d %d",&a,&b); printf("\nenter your choice:"); ch=getchar(); printf("%c",ch); switch(ch) { case '1': printf("sum : %f",a+b); break; case '2': printf("diff : %f",a-b); break; … |
|
Re:
Its pretty rare for me to post questions here but I came across this one about qsort I can't answer. If I try to sort an array of character strings such as [icode]char array[255][20][/icode] qsort works ok as expected. But if I declare the array like this qsort fails: [icode]char*array[255][/icode] … |