Automation Google

Pages

  • HOME
  • 8051
  • PIC
  • PLC
  • Protocols
  • C Quiz
  • Stock Market
  • Embedded Qustions

Friday, 31 January 2014

Predict output or errrors in this program

void main()
{
 int const *p=5;
printf("%d",++(*P));
}


Ans,
Compiler error
Because see const keyword nearer to int, so can’t modify constant value,
See here Pointer is the constant pointer
Posted by Unknown at 06:44
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: C

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2017 (22)
    • ►  May (8)
    • ►  April (13)
    • ►  March (1)
  • ►  2015 (2)
    • ►  December (2)
  • ▼  2014 (25)
    • ►  February (2)
    • ▼  January (23)
      • What is output of this program?
      • What is output of this program?
      • Predict output or errrors in this program
      • LCD Interface using Mickro C
      • Start Your first LED Flashing Program in Mickro C
      • How To Crack Mikroc Pro
      • MickroC Libraries
      • What is PLC?
      • How to Start Embedded C programming For PIC Microc...
      • Basics of PIC Microcontroller
      • PROFIBUS
      • SPI
      • I2C
      • HDMI, Bluetooth, Parallel Communication, VGA, Yost...
      • PLC Communication Cables Configuration and Wiring ...
      • Serial UART
      • USB
      • RJ45
      • RS485
      • RS423
      • RS422
      • RS232 to USB
      • RS 232
  • ►  2013 (13)
    • ►  September (2)
    • ►  August (7)
    • ►  July (4)

About Me

Unknown
View my complete profile
Picture Window theme. Powered by Blogger.