We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.
this expression helped me. Thanks a lot. Greetings from Turkey
Thank you. I'm please to know that it helped you.
how to store result in new variable instead of print?
Hi. There is a wrong basic assumption in this article. An array is not necessarily stored sequentially in memory. The first char can be stored in one memory location and the next in an entirely other location in memory, so you cannot simply advance the pointer by one.
these tutorials are still much better than many other similar websites or youtube channel
If I wanted to split a string using with char delim = "dr", is there any way that I can find out which character did was using to delimit every time it does that. For example, if the string is 40d50r30d.., is there any way that I could know that the 40 was delimited by the char d and the 50 was delimited by char r and likewise
Good tutorial with proper example Thanks
I m signed up for ask this,why i must use define ? When i create an integer variable and put into char arr[x][y] as x and y integers i get an error.I wonder why this cause to an error?And thanks for post by the way
In C you can't declare arrays as char arr[x][y] where x and y are variables. The compiler must know the size of the array at compile time. So you must declare the size as constant.
hmm, thanks for the info
suppose there are two strings and i need to find if the 1st character of the 1st string is present in the 2nd string then how to write code for this?
It sounds as though strchr() would do that.
how to split Audi@9.8 as car nmae and its mielage and store it seperately
You need to use strtok with '@' character, then use strcpy to copy the tokenized string to another string.
how to split Audi@10.8 as car name and mielage and store seperately
Please check my previous answer.
hello thank you this help. here I am able to split token,But can you help how can i store each part of token in different variable?
use string array