Sir... please give some important coding questions asked by product companies..
No Answer is Posted For this Question
Be the First to Post Answer
What are the following notations of defining functions known as? i. int abc(int a,float b) { /* some code */ } ii. int abc(a,b) int a; float b; { /* some code*/ }
main() { extern out; printf("%d", out); } int out=100;
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
main() { while (strcmp(“some”,”some\0”)) printf(“Strings are not equal\n”); }
Give a very good method to count the number of ones in a 32 bit number. (caution: looping through testing each bit is not a solution)
main() { char *p; p="Hello"; printf("%c\n",*&*p); }
How can you relate the function with the structure? Explain with an appropriate example.
How to swap two variables, without using third variable ?
104 Answers AB, ADP, BirlaSoft, Cisco, Cygnet Infotech, HCL, Hewitt, Honeywell, HP, IBM, Infosys, Manhattan, Microsoft, Mobius, Percept, Satyam, SofTMware, TCS, Wipro, Yamaha,
what will be the position of the file marker? a: fseek(ptr,0,SEEK_SET); b: fseek(ptr,0,SEEK_CUR);
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.
how to return a multiple value from a function?
Write a program to receive an integer and find its octal equivalent?