Write one statement equalent to the following two statements
x=sqr(a);
return(x);
Choose from one of the alternatives
a.return(sqr(a));
b.printf("sqr(a)");
c.return(a*a*a);
d.printf("%d",sqr(a));
Answers were Sorted based on User's Feedback
Answer / saranya
both a and d is possible
a: which returns the value of sqr(a)
d:it prints the value of the sqr(a)
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / pradeep kumar.s
My Option Is d
since the printf statement is capable of having two
functionalities
1, display the message in output screen
2, calls the function and return the answer here.
| Is This Answer Correct ? | 2 Yes | 4 No |
int array[]={1,2,3,4,5,6,7,8}; #define SIZE (sizeof(array)/sizeof(int)) main() { if(-1<=SIZE) printf("1"); else printf("2"); }
difference between Low, Middle, High Level languages in c ?
When should a type cast be used?
What are pointers? What are stacks and queues?
wats SIZE_T meant for?
Illustrate it summing the series 2+4+6+......to n terms using (i) while loop (ii) do-while loop
Why c is called free form language?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
how can i get the output 54321 4321 321 21 1 in c programming........???? pls help......
size maximum allocated by calloc()
In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]
Write a c program to Find the name that you entered is male name or female name? Such as Sunjay is name of male and Payal is name of female