I am a student in a first time c programming class. I amhaving problems getting my initials to print in between Hello and World in my program I am writing. I am not sure if I am declaring the variable the right way. Could you please help??
scott_6169
0
Newbie Poster
Recommended Answers
Jump to PostSure -- post your code within code tags
Jump to PostOne way:
#include<stdio.h> int main( ) { printf("Hello %s World", "your initials"); return 0; }
All 6 Replies
Dave Sinkula
2,398
long time no c
Team Colleague
scott_6169
0
Newbie Poster
Dave Sinkula
2,398
long time no c
Team Colleague
scott_6169
0
Newbie Poster
scott_6169
0
Newbie Poster
Dave Sinkula
2,398
long time no c
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.