For a char variable would i also set it to 0 as i would set and int or a float or any other variable?
I want to add a string to char pointer, how can i do? For example: char pointer ischar * process_name; and i have an char array named seco开发者_如何学Cnd. It contains several chars.
I have used the function atoi to convert character strings to int and it\'s working fine but when I gave
I\'m working on a project that makes me store an array of objects whose constructor is Item(char* item, int itemType){
I want todelete a char * array, which should be simple right? char * = new char[length]; then use delete[] char;?
How can I separate a string that has white spaces between the 3 shorts and between the rest of the string to 4 different stri开发者_如何学Pythonngs.
Can I do code such: char *p; p = User_input; Is it possible to assign a string to p at runt开发者_如何学运维ime?Sure you can, but there is no string in c, I think you mean char *, like
I\'m working with the NetLink socket library ( https://sourceforge.net/apps/wordpress/netlinksockets/ ), and I want to send some binary data over the network in a format that I specify.
I have a char array: char[] a = {\'h\', \'e\', \'l\', \'l\', \'o\', \' \', \'w\', \'o\', \'r\', \'l\', \'d\'};
I\'m relatively new to C (and completely new to StackOverflow - hey guys!), and this segfault has been giving me no surcease of sorrow for the past few hours (DevC++ on a windows machine).It\'s just a