main()
{
int i=5;
printf(“%d”,i=++i ==6);
}
Answer / susie
Answer :
1
Explanation:
The expression can be treated as i = (++i==6), because == is
of higher precedence than = operator. In the inner
expression, ++i is equal to 6 yielding true(1). Hence the
result.
| Is This Answer Correct ? | 22 Yes | 5 No |
#include<stdio.h> main() { register i=5; char j[]= "hello"; printf("%s %d",j,i); }
void main() { void *v; int integer=2; int *i=&integer; v=i; printf("%d",(int*)*v); }
#include<stdio.h> main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); }
Printf can be implemented by using __________ list.
What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql
main(int argc, char **argv) { printf("enter the character"); getchar(); sum(argv[1],argv[2]); } sum(num1,num2) int num1,num2; { return num1+num2; }
main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
void main() { int i=5; printf("%d",i++ + ++i); }
Write a routine to draw a circle (x ** 2 + y ** 2 = r ** 2) without making use of any floating point computations at all.
2 Answers Mentor Graphics, Microsoft,
Write a C program that defines a 2-dimentional integer array called A [50][50]. Then the elements of this array should randomly be initialized either to 1 or 0. The program should then print out all the elements in the diagonal (i.e. a[0][0], a[1][1],a[2][2], a[3][3], ……..a[49][49]). Finally, print out how many zeros and ones in the diagonal.
Under linux environment can u please provide a c code for computing sum of series 1-2+3-4+5......n terms and -1+2-3+4-5...n terms..
#include<stdio.h> main() { int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} }; int *p,*q; p=&a[2][2][2]; *q=***a; printf("%d----%d",*p,*q); }