Search:

Type: Posts; User: chpushpakumar; Keyword(s):

Search: Search took 0.00 seconds.

  1. Thread: main()

    by chpushpakumar
    Answers
    6
    Views
    3,972

    Re: main()

    In C, every program execution starts from main and ends with main. So the first function executed in main it self. So no need to prototye main function, if we change the return type.
  2. Thread: main()

    by chpushpakumar
    Answers
    6
    Views
    3,972

    Re: main()

    Actually in C, every function retuns integer defaulty.
    But not every function must return integer.
    we can change the return type.
    Main is also an function, so we can change the return type.
  3. Answers
    3
    Views
    3,396

    Re: Evaluate fibonacci of numbers

    main()
    {
    int i=1,m,j=1,n,k;
    clrscr();
    scanf("%d",&n);
    for(m=1;m<=n-2;m++)
    {
    i=j;
    j=k;
    k=i+j;
  4. Answers
    1
    Views
    8,090

    Re: C Program Logic Question

    ## is String concatenation operator. This will concatenates two values in that Macro.
    Here Var12=100.

    In Macro f(g1,g2) is g1##g2.

    So If f(var,12) then it is var12 so Answer is 100.
    If we put...
Results 1 to 4 of 4
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact