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

Mustafa Açık • 1 year ago

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

Donotalo • 1 year ago

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

Philipe • 1 month ago

how to store result in new variable instead of print?

Peter • 4 months ago

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.

upendra chaudhari • 5 months ago

these tutorials are still much better than many other similar websites or youtube channel

Gsb2 • 10 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 • 11 months ago

Good tutorial with proper example

hopefor • 1 year 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 • 1 year 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 • 1 year ago

hmm, thanks for the info

shivam panchbhai • 1 year 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?

PaulEmmons • 5 months ago

It sounds as though strchr() would do that.

Srinivasan1 • 2 years ago

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

Donotalo • 2 years ago

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

srini • 2 years ago

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

Donotalo • 2 years ago

Please check my previous answer.

Anonymous • 1 year 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 • 1 year ago

use string array