main()
{
int i=5,j=6,z;
printf("%d",i+++j);
}
Answers were Sorted based on User's Feedback
Answer / susie
Answer :
11
Explanation:
the expression i+++j is treated as (i++ + j)
| Is This Answer Correct ? | 50 Yes | 4 No |
Write a C program to print ‘Campus Force training’ without using even a single semicolon in the program.
Is the following code legal? typedef struct a { int x; aType *b; }aType
main ( ) { static char *s[ ] = {“black”, “white”, “yellow”, “violet”}; char **ptr[ ] = {s+3, s+2, s+1, s}, ***p; p = ptr; **++p; printf(“%s”,*--*++p + 3); }
Sir... please give some important coding questions asked by product companies..
struct Foo { char *pName; }; main() { struct Foo *obj = malloc(sizeof(struct Foo)); clrscr(); strcpy(obj->pName,"Your Name"); printf("%s", obj->pName); } a. Your Name b. compile error c. Name d. Runtime error
enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); }
#define max 5 #define int arr1[max] main() { typedef char arr2[max]; arr1 list={0,1,2,3,4}; arr2 name="name"; printf("%d %s",list[0],name); }
what is the output of the below program & why ? #include<stdio.h> void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d",&a,&b,&c)); }
Write a program to check whether the number is prime and also check if it there i n fibonacci series, then return true otherwise return false
int a=1; printf("%d %d %d",a++,a++,a); need o/p in 'c' and what explanation too
Is the following code legal? struct a { int x; struct a b; }
Cluster head selection in Wireless Sensor Network using C programming language.