To what value are pointers initialized? 1) NULL 2) Newly allocated memory 3) No action is taken by the compiler to initialize pointers.
4 9770Which of the following sorts is quickest when sorting the following set: 1 2 3 5 4 1) Quick Sort 2) Bubble Sort 3) Merge Sort
7 16651Which of the following data structures is on average the fastest for retrieving data: 1) Binary Tree 2) Hash Table 3) Stack
3 13704Evaluate the following: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); 1) 10 2) 11 3) 1
6 20307True or false: If you continuously increment a variable, it will become negative? 1) True 2) False 3) It depends on the variable type
7 16392Which of the following is not a valid declaration for main ()? 1) int main() 2) int main(int argc, char *argv[]) 3) They both work
2 13060void swap(int a,int b) { a=a+b; b=a-b; a=a-b; } in this code always gives the same result for all case
9 18811if a five digit number is input through the keyboard, write a program to calculate the sum of its digits. (hint:-use the modulus operator.'%')
23 80700Write a program or provide a pseudo code to flip the 2nd bit of the 32 bit number ! (Phone Screen)
1 6943
How was c created?
write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.
Is there anything like an ifdef for typedefs?
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
What is c value paradox explain?
What are c identifiers?
Can you explain the four storage classes in C?
What is character set?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is the significance of scope resolution operator?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
What are integer variable, floating-point variable and character variable?
How do I create a directory? How do I remove a directory (and its contents)?
What is the code for 3 questions and answer check in VisualBasic.Net?
Explain what is the difference between functions abs() and fabs()?