printf problem

View previous topic View next topic Go down

printf problem

Post by BIT0104-ANIK on 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?
avatar
BIT0104-ANIK
Administrator
Administrator

Course(s) :
  • BIT

Blood Group : O+
Posts : 423
Points : 699

View user profile http://anikstech.blogspot.com

Back to top Go down

Re: printf problem

Post by BIT0122-Amit on 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;
}

_________________________________________________________________
Adminship / Moderatorship is not about power, it is about Responsibility.

|About me|My Blog|
avatar
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

View user profile http://iitdu.forumsmotion.com

Back to top Go down

Re: printf problem

Post by BIT0104-ANIK on 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?
avatar
BIT0104-ANIK
Administrator
Administrator

Course(s) :
  • BIT

Blood Group : O+
Posts : 423
Points : 699

View user profile http://anikstech.blogspot.com

Back to top Go down

Re: printf problem

Post by BIT0122-Amit on 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;

}

_________________________________________________________________
Adminship / Moderatorship is not about power, it is about Responsibility.

|About me|My Blog|
avatar
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

View user profile http://iitdu.forumsmotion.com

Back to top Go down

Re: printf problem

Post by BIT0104-ANIK on 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
avatar
BIT0104-ANIK
Administrator
Administrator

Course(s) :
  • BIT

Blood Group : O+
Posts : 423
Points : 699

View user profile http://anikstech.blogspot.com

Back to top Go down

Re: printf problem

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

:s I just experimented. Don't rely too much on internet

_________________________________________________________________
Adminship / Moderatorship is not about power, it is about Responsibility.

|About me|My Blog|
avatar
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

View user profile http://iitdu.forumsmotion.com

Back to top Go down

Re: printf problem

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


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