&arr[0]=&(*arr)=arr
&* cancel each other
Type: Posts; User: transgalactic2
&arr[0]=&(*arr)=arr
&* cancel each other
if you are reading from a file
then just use fscanf and then but to linked list like i told you
its easy you use len not as the length but as the number of cells in each subset
i is allways the middle of lenso the left x(arr+1,len-i)
and for right x(arr+i+1,i)
so you want to replace "abc" by "z" in each string.
i would build a char* function which returns the end of "abc" in the string (it whould return to str3)
str1=abcddddddeeeffffff
and then i...
soif i understand you correctly you just have a menu
and you enter customers data
and you want to keep the data after you end the function.
if its true
then i would used linked list
do a...
so you are given a string like this one
"x-5=0"
and you want to solve it?
i couldnt understand in details what is your goal?
"I also have another question, when I am passing linked list to the function and when I need to loop through it or somthing else.....does it always start from a first node ...head or I need to tell...
but these have a different algorithm.
i have it on the tip of my tongue.
the answer is
we have two groups
and in those two groups we have a common numbers
so when we what to find the total...
no its not working like that.
i told you what the last part is about
but i dont know when it happens
nope you havent me how?
i am given two bst trees
fill the gaps so it will return the number nodes which are equal in both trees
typedef struct Node{
int Val;
struct Node *Left, *Right;
} Node;
the following function gets as an argument two sorted linked lists
which are sorted by value in ascending order.
there may be nodes with equal value variable in them.
the function merges both...
so what specifier to use for a double variable
if i want two places after a point proximity
i need two digit approximation
float is only one digit after the point
and why you wrote %lf
?
double entered_val;
sscanf(str,"%f", &entered_val);
sscanf(str,"%5f",&fl);
correct
fl is float or
long float or something
?
i want to cast "55.77" which is a string to 55.77 which is a float
sscanf(str,"%5f",fl);
fl will hold 55.77
correct?
i dont have any assignment
i need to understand the subset recursive algorithm
and i didnt find it i good
and its not pointless
this is not a pointless question
??????????
i cant find the general algorithm for recursive subset
on google
??
i need to complete the following structure so
it will print all the str strings in length n,that follows ththe following rules:
A.the strings have only a,b,c chars
B.a string could not have two...
i have a struct
typedef struct item{
int number; //the number
int occur; // the number of ocuurances of this number
struct item *next;
}item;
i need to compete the gaps of the...
actually the big break threw came after
KCfromNC 's post
i just need to know in general
about each part
like he did
(regarding the void main its working purfectly well
and its a question...
is it correct?
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct wordStruct{
char string[256];
struct wordStruct *next;
the this part is harder
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct wordStruct{
char string[256];
struct wordStruct *next;