Given a piece of code
int x[10];
int *ab;
ab=x;
To access the 6th element of the array which of the
following is incorrect?
(A) *(x+5) (B) x[5] (C) ab[5] (D) *(*ab+5} .
Answers were Sorted based on User's Feedback
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
What is the memory allocated by the following definition ? int (*x)();
Is fortran still used today?
3. Program to print all possible substrings. ex: String S St Str Stri Strin String t tr tri trin tring r
given the piece of code int a[50]; int *pa; pa=a; to access the 6th element of the array which of the following is incorrect? a.*(a+5) b.a[5] c.pa[5] d.*(*pa + 5)
5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.
Name the language in which the compiler of "c" in written?
Tell me what are bitwise shift operators?
How do you print an address?
what would be the output of the following prog? Justify your answer? main() { unsigned char ch; unsigned char i; ch = -255; printf("%d",ch); i = -1; printf("%d",i); }
How to delete a node from linked list w/o using collectons?