In C, if you pass an array as an argument to a function, what actually
![]()
Practice Functions – In C, if you pass an array as an argument to a function, what actually gets passed?
![]()
Practice Functions – In C, if you pass an array as an argument to a function, what actually gets passed?
![]()
Practice Arrays – What will be output of the following “c” code?
#include
int main(){
int arr[3]={10,20,30};
int x=0;
x=++arr[++x]+ ++x+arr[--x];
printf("%d ",x);
return 0;
} ![]()
Practice Arrays – Are the expressions arr and &arr same for an array of 10 integers?
![]()
Practice Expressions – What will be output of the following “c” code?
#include
int main(){
int x,a=2;
x=++a,++a,a++;
printf("%d %d",x,a);
return 0;
} ![]()
Practice Control Instructions – Comment on the below while statement
while (0 == 0) { }
![]()
Practice Variable Number of Arguments – What will be output of the following “c” code?
#include
int main(){
printf("%c",*"abcde");
return 0;
} ![]()
Practice Pointers – What does the following declaration mean?
int (*ptr)[10];
![]()
Practice Basic Concept – Which of the following special symbol allowed in a variable name?
![]()
Practice Variable Number of Arguments – What will be output of the following “c” code?
#include
int main(){
float x;
x=0.35==3.5/10;
printf("%f",x);
return 0;
} ![]()
Practice Declarations and Initializations – What could be the output for following “C” code?
main()
{
int a= - - 2;
printf("%d",a);
} ![]()
Practice Expressions – What will be output of the following “c” code?
#include
int main(){
int x,i=2;
x=~-!++i;
printf("%d",x);
return 0;
} ![]()
Practice Bitwise Operators – Predict the output of following “C” code:
main()
{
int x,a=10;
x=9*5+ 7/3 -6+a;
printf("%d",x);
} ![]()
Practice Expressions – What will be output of the following “c” code?
#include
int main(){
int num,i=0;
num=-++i+ ++-i;
printf("%d",num);
return 0;
} ![]()
Practice Control Instructions – Predict the output of following “C” code:
void main()
{
if(1)
printf("hai");
else
printf("hello");
} ![]()
Practice Variable Number of Arguments – What will be output of the following “c” code?
=>For input as 1 2
#include
int main(){
register int a,b;
int c;
scanf("%d%d",&a,&b);
c=~a + ~b + ++a + b++;
printf(" %d",c);
return 0;
}