Can the “if” function be used in comparing strings?
No Answer is Posted For this Question
Be the First to Post Answer
consider the following structure: struct num nam{ int no; char name[25]; }; struct num nam n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}}; ..... ..... printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1); What does the above statement print? a.8,9 b.9,9 c.8,8 d.8,unpredictable value
how does a general function , that accepts an array as a parameter, "knows" the size of the array ? How should it define it parameters list ?
Distinguish between actual and formal arguments.
what is disadvantage of pointer in C
Tell me when is a void pointer used?
Explain the difference between strcpy() and memcpy() function?
What will be the output of following program #include main() { int x,y = 10; x = y * NULL; printf("%d",x); }
Explain how do you determine whether to use a stream function or a low-level function?
is compiler do read the data line by line or not. ??
6 Answers LG Soft, Satyam, Tech Mahindra,
what is use#in c
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.
input may any number except 1,output will always 1.. conditions only one variable should be declare,don't use operators,expressions,array,structure