void main()
{
int i=5;
printf("%d",i+++++i);
}
Answers were Sorted based on User's Feedback
Answer / susie
Answer :
Compiler Error
Explanation:
The expression i+++++i is parsed as i ++ ++ + i which is an
illegal combination of operators.
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / ashi rathore
Ans is 11, as i+++++i can be written as i++ + ++i.
i++ =5
++i = 6
then 5 + 6 = 11
| Is This Answer Correct ? | 0 Yes | 1 No |
main() { int y; scanf("%d",&y); // input given is 2000 if( (y%4==0 && y%100 != 0) || y%100 == 0 ) printf("%d is a leap year"); else printf("%d is not a leap year"); }
{ int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }
main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
void main() { int *i = 0x400; // i points to the address 400 *i = 0; // set the value of memory location pointed by i; }
code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123
main() { extern out; printf("%d", out); } int out=100;
main() { float f=5,g=10; enum{i=10,j=20,k=50}; printf("%d\n",++k); printf("%f\n",f<<2); printf("%lf\n",f%g); printf("%lf\n",fmod(f,g)); }
write a c program to Create a mail account by taking the username, password, confirm password, secret_question, secret_answer and phone number. Allow users to register, login and reset password(based on secret question). Display the user accounts and their details .
write a simple calculator c program to perform addition, subtraction, mul and div.
0 Answers United Healthcare, Virtusa,
#include <stdio.h> #define a 10 main() { #define a 50 printf("%d",a); }
How can i find first 5 natural Numbers without using any loop in c language????????
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,