Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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]);
 
  • Like
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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top