JobsJob TrackerJob alerts

Vyapar ยท 11 questions

All 11Coding 7Low-Level Design 1
  • Maximum value of an expression over an array (two-pointer)Coding
  • Repeatedly combine two elements with a bit operationCoding
  • Sort an array of 0s, 1s and 2sCoding
  • Sum of two linked listsCoding
  • Design tables for a many-to-many mappingLow-Level Design
  • Polymorphism, abstraction and the four pillars of OOP
  • Struct vs union vs class; malloc vs calloc vs new
  • DBMS: normalization, joins and ACID
  • Online Coding Assessment on HackerEarthCoding
  • Technical Interview 1: DSA and Database DesignCoding
  • Technical Interview 2: BFS, Matrix, and CS FundamentalsCoding
โ† Vyapar questions
  1. Interview questions
  2. Vyapar
  3. Struct vs union vs class; malloc vs calloc vs new
Reported in a candidate post, Jan 2023

Struct vs union vs class; malloc vs calloc vs new

Filed under Vyapar

The question

Explain the differences between struct, union and class, and between malloc, calloc and new.

No write-up yet. Related questions below have one.

Related Vyapar questions

  • Maximum value of an expression over an array (two-pointer)
  • Repeatedly combine two elements with a bit operation
  • Design tables for a many-to-many mapping
  • Polymorphism, abstraction and the four pillars of OOP
  • DBMS: normalization, joins and ACID
โ† Polymorphism, abstraction and the four pillars of OOPDBMS: normalization, joins and ACID โ†’

Collected from public candidate posts and coding forums. Updated Nov 2026.