• HOME
  • QUIZ
  • CONTACT US
EXAMIANS
  • COMPUTER
  • CURRENT AFFAIRS
  • ENGINEERING
    • Chemical Engineering
    • Civil Engineering
    • Computer Engineering
    • Electrical Engineering
    • Mechanical Engineering
  • ENGLISH GRAMMAR
  • GK
  • GUJARATI MCQ

C Programming

C Programming
Which of the following function calculates the square of 'x' in C?

pow(x, 2)
pow(2, x)
power(x, 2)
sqr(x)
power(2, x)

ANSWER DOWNLOAD EXAMIANS APP

C Programming
The library function used to find the last occurrence of a character in a string is

strnstr()
strrchr()
None of these
laststr()
strstr()

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Which of the following statements are correct about an array?1. The array int num[26]; can store 26 elements.2. The expression num[1] designates the very first element in the array.3. It is necessary to initialize the array at the time of declaration.4. The declaration num[SIZE] is allowed if SIZE is a macro.

2, 3
1, 4
2, 4
1
None of these

ANSWER DOWNLOAD EXAMIANS APP

C Programming
If integer needs two bytes of storage, then maximum value of an unsigned integer is

215 – 1
215
216 – 1
None of these
216

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ char a[]="12345"; int i = strlen(a); printf("%d", ++i);}

5
7
None of These
6

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Find the output of the following program.void main(){ int array[10]; int *i = &array[2], *j = &array[5]; int diff = j-i; printf("%d", diff);}

6
3
Error
Garbage value

ANSWER DOWNLOAD EXAMIANS APP
MORE MCQ ON C Programming

DOWNLOAD APP

  • APPLE
    from app store
  • ANDROID
    from play store

SEARCH

LOGIN HERE


  • GOOGLE

FIND US

  • 1.70K
    FOLLOW US
  • EXAMIANSSTUDY FOR YOUR DREAMS.
  • SUPPORT :SUPPORT EMAIL ACCOUNT : examians@yahoo.com

OTHER WEBSITES

  • GUJARATI MCQ
  • ACCOUNTIANS

QUICK LINKS

  • HOME
  • QUIZ
  • PRIVACY POLICY
  • DISCLAIMER
  • TERMS & CONDITIONS
  • CONTACT US
↑