main()
{
int i=5;
printf("%d",++i++);
}
Answer / susie
Answer :
Compiler error: Lvalue required in function main
Explanation:
++i yields an rvalue. For postfix ++ to operate an lvalue
is required.
Is This Answer Correct ? | 2 Yes | 1 No |
void main() { static int i; while(i<=10) (i>2)?i++:i--; printf(“%d”, i); }
#include<stdio.h> int main() { int a=3,post,pre; post= a++ * a++ * a++; a=3; pre= ++a * ++a * ++a; printf("post=%d pre=%d",post,pre); return 0; }
Is the following code legal? void main() { typedef struct a aType; aType someVariable; struct a { int x; aType *b; }; }
main() { while (strcmp(“some”,”some\0”)) printf(“Strings are not equal\n”); }
plz send me all data structure related programs
To reverse an entire text file into another text file.... get d file names in cmd line
main() { show(); } void show() { printf("I'm the greatest"); }
void main() { int i=i++,j=j++,k=k++; printf(“%d%d%d”,i,j,k); }
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.
Write a C program to print look and say sequence? For example if u get the input as 1 then the sequence is 11 21 1211 111221 312211 12112221 .......(it counts the no. of 1s,2s etc which is in successive order) and this sequence is used in run-length encoding.
To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates.
19 Answers Amazon, BITS, Microsoft, Syncfusion, Synergy, Vector,
What is the main difference between STRUCTURE and UNION?