/*what is the output for*/
void main()
{
int r;
printf("Naveen");
r=printf();
getch();
}
Answers were Sorted based on User's Feedback
Answer / prathiba
its a compile time error.bcoz r is of integer type.
Is This Answer Correct ? | 7 Yes | 5 No |
Answer / srikanth
compile time error..r is of type integer,so the could is wrong
Is This Answer Correct ? | 3 Yes | 1 No |
#ifdef something int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }
write a origram swaoing valu without 3rd variable
writte a c-programm to display smill paces
posted by surbhi just now main() { float a = 5.375; char *p; int i; p=(char*)&a; for(i=0;i<=3;i++) printf("%02x",(unsigned char) p[i]); } how is the output of this program is :: 0000ac40 please let me know y this output has come
main() { char *p; printf("%d %d ",sizeof(*p),sizeof(p)); }
How do you create a really large matrix (i.e. 3500x3500) in C without having the program crash? I can only reach up to 2500. It must have something to do with lack of memory. Please help!
#include<stdio.h> int main() { int x=2,y; y=++x*x++*++x; printf("%d",y); } Output for this program is 64. can you explain how this output is come??
In a gymnastic competition, scoring is based on the average of all scores given by the judges excluding the maximum and minimum scores. Let the user input the number of judges, after that, input the scores from the judges. Output the average score. Note: In case, more than two judges give the same score and it happens that score is the maximum or minimum then just eliminate two scores. For example, if the number of judges is 5 and all of them give 10 points each. Then the maximum and minimum score is 10. So the computation would be 10+10+10, this time. The output should be 10 because 30/3 is 10.
How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?
Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.
void ( * abc( int, void ( *def) () ) ) ();
Sorting entire link list using selection sort and insertion sort and calculating their time complexity
1 Answers Infosys, Microsoft, NetApp,