C language interview questions solution for freshers beginners placement tricky good pointers answers explanation operators data types arrays structures functions recursion preprocessors looping file handling strings switch case if else printf advance linux objective mcq faq online written test prime numbers Armstrong Fibonacci series factorial palindrome code programs examples on c++ tutorials and pdf
14 comments:
what does [50] & [i] mean ? why are they in brackets ?
to declare in arrays we have to use brackets.
Y do v need to ask d user for d Size. Directly entering d elements wont work?
they are array and 50 represent array size and i for using loop which represent element position num....
[50] is the size of the array.it means if we have an integer array it aqquire 100 bytes in case of [50].because an integer value took 2 bytes.and "i" is nothing ,it is just written to show the compiler that this is used in the main program....
Simple and logical. Thanks a lot :-)
can anyone find smallest and largest element using bitwise opertor?
thank u
awsome bro.......it to easy to understand.......can i found function type problem in ur website....
array is the collection of the elements
tarnary oparetor:
# include
void main()
{
int a, b, c, big ;
printf("Enter three numbers : ") ;
scanf("%d %d %d", &a, &b, &c) ;
big = a > b ? (a > c ? a : c) : (b > c ? b : c) ;
printf("\nThe biggest number is : %d", big) ;
}
i cannot understand what is the problem with this,?
but its donot run properly
#include >
int main()
{
int std,i,a[50],best,low;
printf("how much student : ");
scanf("%d",&std);
for(i=1;i<=std;i++)
{
printf("inter %d student mark : ",i);
scanf("%d",&a[i]);
}
best=a[0];
for(i=0;ia[i])
low=a[i];
}
printf("\nlow mark is :%d\n\n",low);
return 0;
}
i cannot understand what is the problem with this,?
but its donot run properly
#include >
int main()
{
int std,i,a[50],best,low;
printf("how much student : ");
scanf("%d",&std);
for(i=1;i<=std;i++)
{
printf("inter %d student mark : ",i);
scanf("%d",&a[i]);
}
best=a[0];
for(i=0;ia[i])
low=a[i];
}
printf("\nlow mark is :%d\n\n",low);
return 0;
}
F AN ARRAY OF NUMBERS IS PROVIDED, SAY 93, 64, 47, 64, 49, ARRANGE IT IN THE FORM OF A SINGLE NUMBER SUCH THAT THE CONCLUDING NUMBER IS MAXIMUM. OUTPUT EXPECTED IN OUR CASE WILL BE 9364644947. WRITE A FUNCTION TO PROVIDE THE EXPECTED OUTPUT.
Post a Comment