What will the code below print when it is executed?
int x = 3, y = 4;
if (x = 4)
y = 5;
else
y = 2;
printf ("x=%d, y=%d
",x,y);
No Answer is Posted For this Question
Be the First to Post Answer
What are the disadvantages of c language?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
Create a simple code fragment that will swap the values of two variables num1 and num2.
write a program to find the given number is prime or not
2 Answers Accenture, Vasutech,
how should functions be apportioned among source files?
int i =10 main() { int i =20,n; for(n=0;n<=i;) { int i=10 i++; } printf("%d", i);
write a program to find the frequency of a number
#include<stdio.h> #include<conio.h> void main() { clrscr(); int a=0,b=0,c=0; printf("enter value of a,b"); scanf(" %d %d",a,b); c=a+b; printf("sum is %d",c); getch(); }
What is c standard library?
What are global variables and how do you declare them?
What do you mean by c?
In C programming, how do you insert quote characters (‘ and “) into the output screen?