basic in C language

Discussion in 'C' started by sibi, Aug 21, 2009.

  1. sibi

    sibi New Member

    Joined:
    Aug 20, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    hi friends,
    i m sibi, now i m doing mca, pls tell basic of C, bcz i m non it student, so as i m asked,
    thank u
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
  3. sibi

    sibi New Member

    Joined:
    Aug 20, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    hi friends
    now am asking one program for u...
    To write a program to print the 26 alphabets letter without leaving space after each letter?
    so please help me................!
     
  4. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    Code:
    for (int i='a'; i<='z'; putchar(i++)) ;
    
     
  5. vignesh1988i

    vignesh1988i Banned

    Joined:
    Sep 19, 2009
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Chennai
    main()
    {
    static int i=65;
    i<=91 ?printf("%c",i++) : getch();
    main();
    }
     
  6. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
  7. vignesh1988i

    vignesh1988i Banned

    Joined:
    Sep 19, 2009
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Chennai
    :):):) is that above wrong sir?? according to me is correct!!!:nice:
     
  8. micsom_micsom

    micsom_micsom New Member

    Joined:
    Mar 23, 2009
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Embedded C Programmer
    Location:
    India,Hybd
    it Would be much better if u start doing some code related work,if u get stuck ppl here can help u out..
     
  9. ungalnanban

    ungalnanban New Member

    Joined:
    Feb 19, 2010
    Messages:
    45
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    Chennai
    Hi.. sibi ,

    Witch Plat from you are using currently and what C you are learning?

    like Turbo C or ANSI C
     
  10. virxen

    virxen Active Member

    Joined:
    Nov 24, 2009
    Messages:
    387
    Likes Received:
    90
    Trophy Points:
    28
    Code:
    #include <stdio.h>
    int main(){
        for (char c='a';c<='z';c++) printf("%c",c);
    return 0;
    }
    
     
  11. ungalnanban

    ungalnanban New Member

    Joined:
    Feb 19, 2010
    Messages:
    45
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    Chennai
    Note: Sorry for the spell mistake in last post in this node.

    Hi.. sibi ,

    Which Platform you are using currently and you are learning which C ?

    like Turbo C or ANSI C
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice