the output array result is actually the zipped version of arrays a and b.
in that case, there is no use of initializing the array zip at the beginning of the code.
Can this be seen as a possible...
Type: Posts; User: me001
the output array result is actually the zipped version of arrays a and b.
in that case, there is no use of initializing the array zip at the beginning of the code.
Can this be seen as a possible...
thanks...got it...
line 1: Parse Error, expecting `SEP'
'<stddef.h> <string.h> typedef struct link { char *data'
aborting compile
If n is very large, code will run damm slow.
This is not efficient code.
thanks Code::Blocks is excellent
how much you put me down...i will come back strong... GOD
Bug 1 :
line 8: variable 'NULL' not found
'list *output = NULL, *tail, *next'
aborting compile
1. a and b are character arrays. No error.
2. len = strlen(a);
Instead of strlen. i need to use "sizeof" to find lenght or size of array?
3. What is wrong here?
result = malloc(2*len);
Please post some C tutorials
any nice free visual C compiler like Miracle C Compiler?
if n is negative code won't work.
Need to add check to see, n is positive beore passing n to this code.
what else i need to modify this code to work?
how to start this tool and debug code?
ok....
bug 1: both a and b need to be initialized as arrays rather than char
bug 2: len=strlen(a) will not work, since there is no string length for a initially
bug 3: one cannot assign...
these are random selected code for interview...we need to get answer and discuss...
downloaded and installed.
i am going to interview somebody based on these questions...
what version i need to download?
http://gcc.gnu.org/
i don't need helloworld to learn C. i code enough language....just forgot C...
thanks...
learned something.
Microsoft Visual Studio Express Edition is bulky compiler. i installed...this tool got a learning curve.
i want a light weight, less resource, free C compiler to learn C...
i am not going code...
Please help me learn C.
i am learning C for a project...forgot c...no touch for 10 years now.
Thanks...Please help me debug this code..
what compiler i need to use?.
i put this code in miracle C compiler...gives me bug.
thanks
i am not a C person..I am working as SQL DBA.
modified indent style.. what is c indent style?.
what compiler i need to use to compile this code?
Code intended to "zip" two strings together.
(Some input cases are not defined in this code.)
What are bugs in the code?. How to fix bugs?.
char *zip(char *a, char *b) {
char *result;
n-th element of the fibonacci sequence.
What are the bugs in below code and how to fix?.
int fib(int n) {
int tmp;
if (n == 0) return 0;
if (n == 1) return 1;
tmp = fib(n-2);
This code is intended to merge, two sorted, linked lists into a single sorted, linked list: it is supposed to take two lists as input and destructively modify them so that at the end, they form a...