main()
{
int a[3][4] ={1,2,3,4,5,6,7,8,9,10,11,12} ;
int i, j , k=99 ;
for(i=0;i<3;i++)
for(j=0;j<4;j++)
if(a[i][j] < k) k = a[i][j];
printf("%d", k);
}
Answers were Sorted based on User's Feedback
Answer / amit
Answer = 1
because value of k = 1 after first loop execution. so, it next all the values are greater than k and will not print any thing after that.
| Is This Answer Correct ? | 66 Yes | 4 No |
Write a C program to count the number of email on text
main() { int i=5; printf("%d%d%d%d",i++,i--,i); }
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
Explain can static variables be declared in a header file?
Difference between C and Embedded C?
What is difference between structure and union?
What is function prototype in c with example?
what is dangling pointer?
How to find a missed value, if you want to store 100 values in a 99 sized array?
Explain what are the advantages and disadvantages of a heap?
Why does everyone say not to use scanf? What should I use instead?
what is the benefit of c30