[algogeeks] Re: seg fault

2010-06-22 Thread Shravan
%c is the format specifier for char.Provide space between them. On Jun 22, 2:54 pm, sharad sharad20073...@gmail.com wrote: #includestdio.h int main() {         char a,b;         printf(%d\n,12);         printf(%d\n,printf(%d,143));         printf(%d\n,scanf(%2d%3d,a,b));} y this

[algogeeks] Re: seg fault

2010-06-22 Thread Debajyoti Sarma
i don't understand what this statement will do ? scanf(%2d%3d,a,b); -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to

Re: [algogeeks] Re: seg fault

2010-06-22 Thread Rahul Singhal
I think its due to typecasting of char to int just change char a,b to int a,b or last line change inside scan %c segementation fault will not come as size of char is less than size of int On Tue, Jun 22, 2010 at 3:37 PM, Shravan shravann1...@gmail.com wrote: %c is the format specifier for