IITDU Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

printf problem

2 posters

Go down

printf problem Empty printf problem

Post by BIT0104-ANIK Wed Aug 26, 2009 11:01 pm

Can you guys say me that how you are gonna print %d %d %d on the screen in c?
BIT0104-ANIK
BIT0104-ANIK
Administrator
Administrator

Course(s) :
  • BIT

Blood Group : O+
Posts : 423
Points : 699

http://anikstech.blogspot.com

Back to top Go down

printf problem Empty Re: printf problem

Post by BIT0122-Amit Thu Aug 27, 2009 12:47 am

Easy Neutral

Code:
#include<stdio.h>
#include<conio.h>

int main(){
    char *str="%d %d %d";

    puts(str);
    getch();
    return 0;
}
BIT0122-Amit
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

https://iitdu.forumotion.com

Back to top Go down

printf problem Empty Re: printf problem

Post by BIT0104-ANIK Thu Aug 27, 2009 1:46 am

umm... i should have been more precise in describing my problem. Actually i wanted to print it with printf(); Do ya know how to?
BIT0104-ANIK
BIT0104-ANIK
Administrator
Administrator

Course(s) :
  • BIT

Blood Group : O+
Posts : 423
Points : 699

http://anikstech.blogspot.com

Back to top Go down

printf problem Empty Re: printf problem

Post by BIT0122-Amit Thu Aug 27, 2009 1:54 am

how about this?
Code:

#include<stdio.h>
#include<conio.h>

int main(){
    printf("%%d %%d %%d");

    getch();
    return 0;

}
BIT0122-Amit
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

https://iitdu.forumotion.com

Back to top Go down

printf problem Empty Re: printf problem

Post by BIT0104-ANIK Thu Aug 27, 2009 2:09 am

Thankkkkkkkksssssssssssss AAAA LLLLLOOOOTTT...I have spent over an hour searching it..but the stupid internet didn't have the answer
BIT0104-ANIK
BIT0104-ANIK
Administrator
Administrator

Course(s) :
  • BIT

Blood Group : O+
Posts : 423
Points : 699

http://anikstech.blogspot.com

Back to top Go down

printf problem Empty Re: printf problem

Post by BIT0122-Amit Thu Aug 27, 2009 2:11 am

:s I just experimented. Don't rely too much on internet
BIT0122-Amit
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

https://iitdu.forumotion.com

Back to top Go down

printf problem Empty Re: printf problem

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum