• 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
char *ptr;char myString[] = "abcdefg";ptr = myString;ptr += 5;what string does ptr point to in the sample code above?

bcdefg
fg
defg
cdefg
efg

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Comment on the following?const int *ptr;

We cannot change the value pointed by ptr.
Both of the above
We cannot change the pointer ptr itself.
We can change the pointer as well as the value pointed by it.

ANSWER DOWNLOAD EXAMIANS APP

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

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

ANSWER DOWNLOAD EXAMIANS APP

C Programming
C was primarily developed as

General purpose language
Data processing language
System programming language
None of these

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ char *p; printf("%d %d", sizeof(*p), sizeof(p));}

1 1
2 2
2 1
1 2

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Comment on the following pointer declaration?int *ptr, p;

ptr and p, both are pointers to integer.
ptr is pointer to integer, p may or may not be.
ptr and p both are not pointers to integer.
ptr is a pointer to integer, p is not.

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
↑