3,259 views
1 votes
1 votes

What will be the output of the program?

#include<stdio.h>

int addmult(int ii, int jj)
{
    int kk, ll;
    kk = ii + jj;
    ll = ii * jj;
    return (kk, ll);
}

int main()
{
    int i=3, j=4, k, l;
    k = addmult(i, j);
    l = addmult(i, j);
    printf("%d %d\n", k, l);
    return 0;
}

1 Answer

Related questions

1 votes
1 votes
2 answers
1
Anjana Babu asked Dec 21, 2016
547 views
Write C Program using Recursive Funtions for the Problem Described below and Analyse the Complexity Of the CodeProblemGiven an unordered array arr[] which contains n di...
5 votes
5 votes
2 answers
2
Mandeep Singh asked Oct 22, 2016
18,303 views
#include <stdio.h int main() { int y = 2; int z = y +(y = 10); printf("%d\n", z); }
0 votes
0 votes
1 answer
3
Parshu gate asked Nov 19, 2017
376 views
#include<stdio.h>int main(){ int a=2;if(a==2){ a=~a+2<<1; printf("%d",a);}}
0 votes
0 votes
0 answers
4