Jul 30, 2017 #1 R reza05 Junior Member level 2 Joined May 31, 2015 Messages 21 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 152 hello, how can I use control+z in printf? is this true? Code: printf("%c",26); and,can I use these three consecutive commands in one printf command? Code: printf("hello"); printf("pointer[10]); printf("\r"); \\enter thanks. Last edited: Jul 30, 2017
hello, how can I use control+z in printf? is this true? Code: printf("%c",26); and,can I use these three consecutive commands in one printf command? Code: printf("hello"); printf("pointer[10]); printf("\r"); \\enter thanks.
Jul 30, 2017 #2 F franekz Junior Member level 2 Joined Dec 10, 2015 Messages 20 Helped 2 Reputation 4 Reaction score 2 Trophy points 3 Activity points 155 A good C book is needed. I do not know what type pointer[x] is so I will assume int printf("hello %i\r", pointer[10]);
A good C book is needed. I do not know what type pointer[x] is so I will assume int printf("hello %i\r", pointer[10]);
Jul 30, 2017 #3 R reza05 Junior Member level 2 Joined May 31, 2015 Messages 21 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 152 franekz said: A good C book is needed. I do not know what type pointer[x] is so I will assume int printf("hello %i\r", pointer[10]); Click to expand... thanks, pointer is a character,like '3' and enter must be at end of the string like "hello3\r" I want to have no space between commands. is this true? printf("hello%c\r",pointer[10]); - - - Updated - - - I have tested above code and work. Last edited: Jul 30, 2017
franekz said: A good C book is needed. I do not know what type pointer[x] is so I will assume int printf("hello %i\r", pointer[10]); Click to expand... thanks, pointer is a character,like '3' and enter must be at end of the string like "hello3\r" I want to have no space between commands. is this true? printf("hello%c\r",pointer[10]); - - - Updated - - - I have tested above code and work.