main()
{
int a[10];
printf("%d",*a+1-*a+3);
}

Answers were Sorted based on User's Feedback



main() { int a[10]; printf("%d",*a+1-*a+3); }..

Answer / rameshp

ans is 4.
bec
*a+1-*a+3= 4 +*a,-*a ll be cancel....so ans s 4...

Is This Answer Correct ?    48 Yes 3 No

main() { int a[10]; printf("%d",*a+1-*a+3); }..

Answer / prashant agarwal

this is give an compilation error

Is This Answer Correct ?    4 Yes 10 No

Post New Answer

More C Interview Questions

How can I return multiple values from a function?

6 Answers  


How to use c/c++ code in JAVA

10 Answers   CDAC, IBM, Satyam, Scope International,


Is c high or low level?

0 Answers  


Whether there can be main inside another main?If so how does it work?

14 Answers   Sail, Wipro,


How does free() know explain how much memory to release?

0 Answers  






In which header file is the null macro defined?

0 Answers  


#define MAX(x,y) (x) > (y) ? (x) : (y) main() { int i = 10, j = 5, k = 0; k = MAX(i++, ++j); printf("%d %d %d", i,j,k); } what will the values of i , j and k? }

14 Answers   CDAC, GATE, NDS, TCS,


Can we change the value of constant variable in c?

0 Answers  


Can we declare a function inside a function in c?

0 Answers  


Explain what is the benefit of using enum to declare a constant?

0 Answers  


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

0 Answers   Wilco,


write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...

0 Answers  


Categories