what will be the output of following C program.
Practice Library Functions – what will be the output of following C program.
void main()
{
sum=0
for (i=100 , i<0 , i++)
sum += abs(i);
printf("%d", sum)
}
Practice Library Functions – what will be the output of following C program.
void main()
{
sum=0
for (i=100 , i<0 , i++)
sum += abs(i);
printf("%d", sum)
}
Practice Library Functions – The library function sqrt operates on a double precision argument. If, i is an integer variable, which one of the following calls would correctly compute sqrt (i)?
Practice Library Functions –
Find the output on a 64 bit GCC compiler.
#include <stdio.h>
#include <string.h>
int main(){
char name[20]="David";
int salary=1500;
printf("%s %d
",name,salary);
fprintf(stdout,"%s %d
",name,salary);
return 0;
}
What will be the output of the following program on GCC?
Practice Library Functions –
What will be the output of the following program on GCC?
#include <stdio.h>
int main() {
int a,b;
printf("enter the values");
scanf("%d %d",a,b); // a=4 b=5
printf("%d %d
",a,b);
return 0;
}
What will be the output of the following program on GCC?
Practice Library Functions –
What will be the output of the following program on GCC?
#include <stdio.h>
int main() {
int a,b;
printf("enter the values");
scanf("%d
%d",&a,&b); // a=4 b=5
printf("a=%d b=%d
",a,b);
return 0;
}
What will be the output of the following program on GCC?
Practice Library Functions –
What will be the output of the following program on GCC?
#include <stdio.h>
int main() {
int a,b;
scanf("%d enter value: %d",&a,&b); // a=4 b=5
printf("a=%d b=%d
",a,b);
return 0;
}
What will be the output of following program on GCC?
Practice Library Functions –
What will be the output of following program on GCC?
#include <stdio.h>
int main() {
int a,b;
printf("enter values of a and b");
scanf("%d
,,%d",&a,&b);//a=4, b=5
printf("a=%d b=%d
",a,b);
return 0;
}
What will be the output of the following program on GCC?
Practice Library Functions –
What will be the output of the following program on GCC?
#include <stdio.h>
int main() {
float a=4;
int i=2;
printf("%f,%d
",i/a,i/a);
printf("%d,%f
",i/a,i/a);
return 0;
}
What will be the output of the following program on GCC?
Practice Library Functions –
What will be the output of the following program on GCC?
#include <stdio.h>
int main() {
printf("%d %c
");
return 0;
}
What will be the output of the following program on GCC?
Practice Library Functions –
What will be the output of the following program on GCC?
#include <stdio.h>
int main() {
float a;
a=4/2;
printf("
%f %f",a,4/2);
return 0;
}
Find the output of :
#include &l
Practice Library Functions –
Find the output of :
#include <stdio.h>
int main(void) {
// your code goes here
int MyNameIs = 90;
int MyNameis = 80;
printf("""%d""",MyNameIs);
return 0;
}
What is the output of the following program on GCC compiler?
Practice Library Functions –
What is the output of the following program on GCC compiler?
#include <stdio.h>
int main(){
int x=-5;
for(;x;printf("%d ",++x));
return 0;
}
#include <stdio.h>
int mai
Practice Library Functions –
#include <stdio.h>
int main() {
int a,b;
printf("enter values of a and b");
scanf("%d
,,%d",&a,&b);//a=4, b=5
printf("a=%d b=%d
",a,b);
return 0;
}
#include <stdio.h>
int mai
Practice Library Functions –
#include <stdio.h>
int main() {
int a,b;
printf("enter the values");
scanf("%d
%d",&a,&b); // a=4 b=5
printf("a=%d b=%d
",a,b);
return 0;
}
#include <stdio.h>
int mai
Practice Library Functions –
#include <stdio.h>
int main() {
int a,b;
scanf("%d enter value: %d",&a,&b); // a=4 b=5
printf("a=%d b=%d
",a,b);
return 0;
}