We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

Mustafa Açık • 9 months ago

this expression helped me. Thanks a lot. Greetings from Turkey

Donotalo • 9 months ago

Thank you. I'm please to know that it helped you.

Gsb2 • 2 months ago

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

Sunil Sheth • 3 months ago

Good tutorial with proper example

hopefor • 6 months ago

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

Donotalo • 6 months ago

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.

hopefor • 6 months ago

hmm, thanks for the info

shivam panchbhai • 7 months ago

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?

Srinivasan1 • 1 year ago

how to split Audi@9.8 as car nmae and its mielage and store it seperately

Donotalo • 1 year ago

You need to use strtok with '@' character, then use strcpy to copy the tokenized string to another string.

srini • 1 year ago

how to split Audi@10.8 as car name and mielage and store seperately

Donotalo • 1 year ago

Please check my previous answer.

Anonymous • 10 months ago

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?

Vikas Gupta • 7 months ago

use string array