Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~761 People Reached
Favorite Forums
Favorite Tags
c x 11
Member Avatar for modaslam

Can any one help me to optimize this code. Or possible to alter and make it more simple The out put i need to get is [CODE] 1 212 32123 ....... [/CODE] this is the code [CODE] main() { int i,j,k,n=4,val,flag=0; for(i=0;i<n;i++) { for(j=1;j<n-i;j++) putchar(' '); val=i+1; flag=0; for(k=0;k<2*i+1;k++) { …

Member Avatar for heznenkiah
0
106
Member Avatar for modaslam

hello Can anybody tell me how to Write a C program to print "Hello World" with out using ';'

Member Avatar for Narue
0
129
Member Avatar for modaslam

Hello Geeks, I am working on a program for date,month calculation. I found this code used to convert to Gregorian format for calculation. It would be great full for me if anybody can explain this ... like 0.75 yy/4 .4*mm what are these constants why m-1, yy-1 etc.. [CODE] long …

Member Avatar for modaslam
0
146
Member Avatar for modaslam

I have some question on structure padding Can any one help me! Structure padding is done for alignment(is it right) 1. Why is it to be aligned? [CODE] 2. struct sfoo { int a; char i; } sizeof(struct sfoo) = 8 // 4+1+3(padding) struct sfoo { //int a; char i; …

Member Avatar for modaslam
0
271
Member Avatar for modaslam

hello, Can any one tell me how to print the patter [CODE] * *** * for n =1 ** **** **** ** for n = 2 *** ***** ***** ***** *** for n = 3 [/CODE] the code i am having is [CODE] for(i=0;i<=n;i++) { for(j=1;j<n-i;j++) putchar(' '); for(k=0;k<=i;k++) printf('* …

Member Avatar for Narue
0
109