Tags » C Program

[gdb] Commands for examining program in assembly

i r
i all-r
i f
i proc m
disas 
x/4xw (10w) $sp
x/5i
x/i $pc
Linux

Running Your First Programs in C

One of my duties at National University of Engineering is to teach C to first year stdudents.  I have talk about paradigms od programming and some history regarded to C language, starting with the year of creation 1969 – 1973 at AT&T Bell Labs and highlighting that the Linux kernel was written in C because of its power that let manage resources of the computer. 126 more words

Julita Inca

C Program to draw star pattern

#include<stdio.h>
int main()
{
int i, j;

for(i=1; i<=5; i++)
{
for(j=5; j>i; j–)
{
printf(” “);
}
printf(“*”);
for(j=1; j<(i-1)*2; j++)
{
printf(” “); 36 more words

C Program to draw star pattern

#include <stdio.h>

int main()
{
int i, j, k;
for(i=5;i>=1;i–)
{
for(j=5;j>i;j–)
{
printf(” “);
}
for(k=1;k<=i;k++)
{
printf(“*”);
}
printf(“\n”);
}
getchar();

return 0;
}

C Program to draw star pattern

#include <stdio.h>

int main()
{
int i, j, k;
for(i=5;i>=1;i–)
{
for(j=1;j<i;j++)
{
printf(” “);
}
for(k=5;k>=i;k–)
{
printf(“*”);
}
printf(“\n”);
}
getchar();
return 0;
}

C Program to draw star pattern

#include <stdio.h>

int main()
{
int i, j;
for(i=5;i>=1;i–)
{
for(j=1;j<=i;j++)
{
printf(“*”);
}
printf(“\n”);
}
getchar();
return 0;
}

C Program to draw star pattern

#include <stdio.h>

int main()
{
int i, j;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf(“*”);
}
printf(“\n”);
}
getchar();
return 0;
}