Why is objective c syntax so weird?



Why is objective c syntax so weird?..

Answer / Mohit Singh Chauhan

"Objective-C's syntax can appear strange to those accustomed to other programming languages because it is a superset of the C programming language and includes Objective-C extensions. It uses square brackets `[]` for array indexing, @ symbols for defining classes and methods, and message syntax for method calls (e.g., `[object method]`)."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

Can we create dynamic classes in objective c? If yes, explain how to create with a valid use case?

1 Answers  


What is meant by not thread safe?

1 Answers  


Are callbacks closures?

1 Answers  


Who invented objective c?

1 Answers  


How to restart app in objective c?

1 Answers  


Is objective c, a dynamic language? True/false, explain.

1 Answers  


What is the difference between weak and unowned?

1 Answers  


Is swift faster than objective c?

1 Answers  


What is the difference between method and type?

1 Answers  


Which language does apple use?

1 Answers  


Can you learn swift without knowing objective c?

1 Answers  


What is the class of a constant string?

1 Answers  


Categories