• 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
Determine Output:void main(){ char *p; p="%dn"; p++; p++; printf(p-2, 300);}

%d\n
300
None of These
Error

ANSWER DOWNLOAD EXAMIANS APP

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

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

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of the program if the array begins at address 65486?#includevoid main(){ int arr[] = {12, 14, 15, 23, 45}; printf("%u, %u", arr, &arr);}

65486, 65487
65486, 65486
65486, 65490
None of these
65486, 65488

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What is the output of the following statements?int i = 0;printf("%d %d", i, i++);

0 0
None of these
0 1
1 0
1 1

ANSWER DOWNLOAD EXAMIANS APP

C Programming
The output of the following program is:#define f(g,g2) g##g2void main(){ int var12=100; printf("%d", f(var,12));}

Syntax error
g##g2
100
10012
Runtime error

ANSWER DOWNLOAD EXAMIANS APP

C Programming
A C variable cannot start with

A number
An alphabet
Both of the above
A special symbol other than underscore

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
↑