question about printf

Status
Not open for further replies.

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:

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]);
 
Reactions: reza05

    reza05

    Points: 2
    Helpful Answer Positive Rating
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]);

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:

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…